How can I rewrite SpyInstance
using MockInstance
?
#6998
Unanswered
rinarakaki
asked this question in
Q&A
Replies: 1 comment
-
On the same page it says how all mock functions and types are also changed with examples: https://vitest.dev/guide/migration#simplified-generic-types-of-mock-functions-e-g-vi-fn-t-mock-t |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The doc says:
but
MockInstance
is not a drop-in replacement ofSpyInstance
. How can I migrate correctly?Beta Was this translation helpful? Give feedback.
All reactions