-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App.vue doesnt mount when running tests #745
Comments
Yes, this is the case. Given that you might not always want |
In my particular case my simplified app.vue looks something like:
v-app is vuetify's app wrapper element (it will be used when they mount dialogs and hover menu's etc). A lot of my components will end up generating popup menu's that I unfortunately cant test unless app.vue gets mounted. |
What about providing a path in the runtime test options to an |
I think my issue is similar. I am testing a component that opens a When testing this component with When testing with
I've tried looking for some more detail regarding this suggestion. @danielroe Do you have an example or a link to documentation that dives into this with a little more detail? |
Is this something that is possible currently? Or are you suggesting a new feature? Either way I believe that would work. |
I am working on adding component/integration testing to a project that heavily uses pinia and this would be useful for that as well as opposed to manually stubbing it out in every test. |
Environment
[8:43:08 AM] Working directory: C:/code/nuxt-test
[8:43:08 AM] Nuxt project info:
Reproduction
https://github.com/joel-wenzel/nuxt-test
Steps to reproduce:
Describe the bug
It seems like App.vue doesnt mount when using @nuxt/test-utils. This was something nuxt-vitest did do, at least version 0.11.0.
In my case I am also using vuetify and rely on some of the vuetify elements being mounted in the app which unfortunately is not happening.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: