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
import{it}from'vitest'import{mountSuspended}from'@nuxt/test-utils/runtime'importAppfrom'../app.vue'it('can mount some component',async()=>{awaitmountSuspended(App)})
Since test are working by running vitest --ui it isn't blocking but it kinda defeat the whole purpose of using @nuxt/test-utils/module, which seemed very convenient
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
Create a new Nuxt projet, install test suite following this link
Create a simple test and run pnpm dev.
Open devtools and run the tests
Describe the bug
Tests run from the devtools or the Vitest UI url on
pnpm dev
are broken withTypeError: Cannot read properties of undefined (reading 'vueApp')
However, running
vitest --ui
manually is workingAdditional context
This happens even with the most basic vitest config file and nuxt config
Spec file:
Since test are working by running
vitest --ui
it isn't blocking but it kinda defeat the whole purpose of using@nuxt/test-utils/module
, which seemed very convenientLogs
No response
The text was updated successfully, but these errors were encountered: