Multiple mockNuxtImport
Hi !
I'm using
As mentioned in the documentation, we can't use multiple
Thus, in order to get different results between tests, i'm trying to use it that way (
I get this error :
I just don't get why this isn't working... If anyone has already figured this out, please thank you
I'm using
mockNuxtImport from @nuxt/test-utils/runtime to mock the useLazyFetch method, which works fine.As mentioned in the documentation, we can't use multiple
mockNuxtImport as it'll be hoisted but we can use vi.hoisted to expose mocks and use them in a single mockNuxtImport use.Thus, in order to get different results between tests, i'm trying to use it that way (
RecipeFetchResult just being a TypeScript interface) at the top of my test file :I get this error :
I just don't get why this isn't working... If anyone has already figured this out, please thank you
