You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is module mocking properly implemented in browser mode ? I can't seem to make it work. I saw this PR and supposedly it is suppose to work.
I am mocking my package like so :
vi.mock('uuid', () => ({
v4: 'mocked-id',
}));
What am I doing wrong ? I added a stackblitz for a more complete example.
Hello @alexprudhomme. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
Is module mocking properly implemented in browser mode ? I can't seem to make it work. I saw this PR and supposedly it is suppose to work.
I am mocking my package like so :
What am I doing wrong ? I added a stackblitz for a more complete example.
Thanks
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-mzcobmhk?file=test%2Fbasic.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: