mockNuxtImport modify original #660
Unanswered
henritoivar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using vi.mock (https://vitest.dev/api/vi.html#vi-mock) we still import the original module, modify it and return it. How would we go about doing that with mockNuxtImport?
I'm trying to do something like this. But currently it causes an infinite loop:
Beta Was this translation helpful? Give feedback.
All reactions