Skip to content

Tag: vitest

How to clear/reset mocks in Vitest

I have a simple composable useRoles which I need to test My approach of testing it is the following And useStore is just a simple function that I intended to mock The first test runs successfully, it has all the mock values I implemented but the problem is that it’s not resetting for each test (not rese…