mock reset #6193
mock reset
#6193
-
use beforeEach resetAllMocks ,Why would the second mock still overwrite the first, causing the first test to be wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Jul 23, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wChenonly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vi.mock
is hoisted: https://vitest.dev/api/vi.html#vi-mock