You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're experiencing issues with Nuxt plugins that utilize vueApp.provide() to inject values. Consuming those injected values in components works fine when using the dev server. However when testing with nuxt-vitest these values are not set.
We've tried to pass the nuxtApp.vueApp as localVue in the mountSuspended() options but this seems to have no effect.
I've created a failing test case for this here (diff)
The new component for the test case should look like this:
But in tests the content (which is the injected value) is empty.
The text was updated successfully, but these errors were encountered:
Hi 👋
We're experiencing issues with Nuxt plugins that utilize
vueApp.provide()
to inject values. Consuming those injected values in components works fine when using the dev server. However when testing withnuxt-vitest
these values are not set.We've tried to pass the nuxtApp.vueApp as
localVue
in themountSuspended()
options but this seems to have no effect.I've created a failing test case for this here (diff)
The new component for the test case should look like this:
But in tests the content (which is the injected value) is empty.
The text was updated successfully, but these errors were encountered: