Replies: 2 comments 1 reply
-
You can check mocking cheat sheet for different ways to mock a module: https://vitest.dev/guide/mocking.html#cheat-sheet |
Beta Was this translation helpful? Give feedback.
1 reply
-
I achieved it like this for mocking a component.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the
vi.mock
to mock module but only in one test.I tried the following but it does not seem to work, the
original
test still has the mocked module dataAny solution to this? Or am I using the vi.mock incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions