-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CLI --coverage.exclude filter throws TypeError #3450
Labels
Comments
You can provide coverage options inside a |
I thought I was supposed to use |
We should probably guard all possible properties with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I'm using Vitest in a monorepository (with
vitest.workspace.ts
), and it looks like the only way to provide coverage options is through CLI.The command I use includes this filter:
--coverage.exclude='**/node_modules/**'
, which causes Vitest to throw this error:Reproduction
In a monorepository that leverages Vitest Workspaces, run this command:
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: