Description
Environment
- Operating System:
Darwin
- Node Version:
v22.12.0
- Nuxt Version:
3.17.3
- CLI Version:
3.25.1
- Nitro Version:
2.11.12
- Package Manager:
bun@1.2.14
- Builder:
-
- User Config:
modules
,typescript
,alias
,compatibilityDate
,css
,devtools
,experimental
,future
,rootDir
,vite
,hanko
,i18n
- Runtime Modules:
~~/modules/startup-check
,@nuxt/fonts@0.11.4
,@nuxt/icon@1.13.0
,@nuxt/image@1.10.0
,@nuxt/test-utils@3.19.0
,@nuxt/test-utils/module@3.19.0
,@nuxt/ui@3.1.2
,@nuxtjs/i18n@9.5.4
,@nuxtjs/hanko@1.0.0
- Build Modules:
-
Reproduction
https://stackblitz.com/edit/github-d5xpujkj?file=test%2Fbug.test.ts
Describe the bug
I got some trouble when I updated from 3.18 to 3.19
After the update only .nuxt.test.ts
tests are run by vitest.
To restore the previous behaviour (also running tests unrelated to nuxt), I now need to set environment "nuxt", which feels really unintiutive.
export default defineVitestConfig({
test: {
environment: "nuxt",
},
})
Additional context
No response