Skip to content
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

Vitest workspaces not properly supported by defineVitestConfig #1043

Open
TheDutchCoder opened this issue Dec 18, 2024 · 0 comments
Open

Vitest workspaces not properly supported by defineVitestConfig #1043

TheDutchCoder opened this issue Dec 18, 2024 · 0 comments

Comments

@TheDutchCoder
Copy link

Environment

------------------------------
- Operating System: Darwin
- Node Version:     v20.13.0
- Nuxt Version:     3.14.1592
- CLI Version:      3.16.0
- Nitro Version:    2.10.4
- Package Manager:  [email protected]
- Builder:          -
- User Config:      default
- Runtime Modules:  @nuxt/[email protected], [email protected], @nuxtjs/[email protected], [email protected], @nuxtjs/[email protected], @nuxtjs/[email protected], @vueuse/[email protected], @sidebase/[email protected], @vesp/[email protected]
- Build Modules:    -
------------------------------

Reproduction

When using a vitest workspace, vitest complains that it can't resolve the config files, this is due to defineVitestConfig.

> vitest

failed to load config from /Users/reinierkaper/rvezy/rvezy-web-client/src/tests/unit/vitest.config.ts

Describe the bug

I think the defineVitestConfig wrapper conflicts with what vitest expects back in a workspace configuration file.
Everything works fine when the tests are ran directly with a config file reference, just not in a workspace.

Additional context

No response

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant