Skip to content

@vitest-environment-options is not working #1541

@yamachi4416

Description

@yamachi4416

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions