Melio.
Explore posts from serversMultiple mockNuxtImport
Hi !
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 😅6 replies
DIAdiscord.js - Imagine an app
•Created by Melio. on 6/20/2023 in #djs-questions
Use a webhook in a forum channel
We can create webhooks in forum channels but can we send messages with the webhook in a specific forum post ?
14 replies