-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
How to to jest test inside nuxt-bridge #610
Comments
can you share small reproduction? |
Yes sure (will add it to the reproduction inside the desc)
|
I believe there's no way to solve Auto Import with Jest.
However, personally, I think it would be better to use https://github.com/antfu/unplugin-auto-import with Vitest. |
It will be closed as there is no reaction for some time. |
Environment
Darwin
v16.16.0
2.16.0-27720022.54e852f
0.5.4
[email protected]
webpack
alias
,head
,css
,plugins
,components
,buildModules
,tailwindcss
,modules
,basic
,robots
,sentry
,i18n
,gtm
,runtimeConfig
,auth
,axios
,build
,serverHandlers
,devServerHandlers
,bridge
@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,[email protected]
()
,@nuxtjs/[email protected]
,[email protected]
,@nuxt/[email protected]
Reproduction
composables/config.ts
config.spec.ts
The error
Describe the bug
Jest failed to execute test when auto import composables of nuxt are used
Trying to test a composables that use
reactive
auto-import lead toReferenceError: reactive is not defined
I tried to install
@nuxt/test-utils
but it's not compatible with nuxt-bridge.What is the way to do unit testing on nuxt-bridge with auto import inside ?
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: