-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Labels
Description
Environment
Working directory: /home/projects/mklilxxbka.github nuxi 10:17:06
Nuxt project info: nuxi 10:17:06
- Operating System: Linux
- Node Version: v20.19.1
- Nuxt Version: 4.2.0
- CLI Version: 3.30.0
- Nitro Version: 2.12.9
- Package Manager: [email protected]
- Builder: -
- User Config: devtools, compatibilityDate
- Runtime Modules: -
- Build Modules: -
Reproduction
https://stackblitz.com/edit/github-4bbxd9tb?file=package.json
Describe the bug
When using Vitest 4 with Nuxt, it shows warning on execution.
The Vitest environment nuxt defines the "transformMode". This options was deprecated in Vitest 4 and will be removed in the next major version. Please, use "viteEnvironment" instead.
Also, there is peer dependencies issue:
.
├─┬ @nuxt/test-utils 3.20.1
├── ✕ unmet peer vitest@^3.2.0: found 4.0.6
└─┬ vitest-environment-nuxt 1.0.1
└─┬ @nuxt/test-utils 3.20.1
└── ✕ unmet peer vitest@^3.2.0: found 4.0.6
Here the transformMode option used instead of viteEnvironment
https://github.com/nuxt/test-utils/blob/main/src/environments/vitest/index.ts#L19
cotone-dev, Krakor92, FlorianWerndl, Q16solver, henry40408 and 13 more