-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Workspace configuration works only with inline configuration #4577
Comments
Vitest uses only a single config per folder at the moment, it filters others out. |
Thanks for the quick reply @sheremet-va, did I miss this point in the documentation or is not highlighted at all? |
It's not highlighted, and looks like a bug to be honest. |
Also encountered this when I tried to add a config file for unit tests and one for integration tests in the same folder. But simple enough to move to a subfolder for my integration tests as a workaround. |
I think the initial idea was to filter out |
@sheremet-va yes, the correct implementation I expect would filter out the |
The workspace resolution was rewritten in 2.1. |
Describe the bug
Hi there, I'm having an issue with workspace configuration in my project. Basically, it runs all the tests only when configurations are defined inline, while it runs only the first matched when defined with the glob pattern.
In the reproduction I've defined the
vitest.workspace.ts
with both configurations (the glob pattern one is commented) so you can check this properly.Reproduction
https://stackblitz.com/edit/stackblitz-starters-qrhqud?file=vitest.workspace.ts
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: