Environment
Nuxt project info:
|
|
| Operating system |
Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 |
| CPU |
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (8 cores) |
| Node.js version |
v20.19.1 |
| nuxt/cli version |
3.32.0 |
| Package manager |
npm@10.8.2 |
| Nuxt version |
4.2.2 |
| Nitro version |
2.13.0 |
| Builder |
vite@7.3.1 |
| Config |
compatibilityDate, devtools |
| Modules |
- |
Reproduction
https://stackblitz.com/edit/github-cjvr31cb?file=test%2Fapp.nuxt.spec.ts
Describe the bug
using @vitest-environment-options in a test file causes tests to fail.
environment setup appears to receive only the options from the @vitest-environment-options.
it would be better to merge these with the environmentOptions from the config.
Additional context
No response
Logs
Environment
Nuxt project info:
Linux 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (8 cores)v20.19.13.32.0npm@10.8.24.2.22.13.0vite@7.3.1compatibilityDate,devtools-Reproduction
https://stackblitz.com/edit/github-cjvr31cb?file=test%2Fapp.nuxt.spec.ts
Describe the bug
using
@vitest-environment-optionsin a test file causes tests to fail.environment setup appears to receive only the options from the
@vitest-environment-options.it would be better to merge these with the
environmentOptionsfrom the config.Additional context
No response
Logs