Skip to content

Testing code inside onNuxtReady callback #862

Closed Answered by lorenzo-kun
lorenzo-kun asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, I tried asking ChatGPT, and while it didn't give me a useful answer, it pointed me in the right direction of mocking the onNuxtReady function itself. Just putting this modification of my reproduction here in case anyone else encounters the same issue: https://stackblitz.com/edit/nuxt-starter-haepuw?file=app.nuxt.test.ts&view=editor

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lorenzo-kun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant