You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have multiple packages in a monorepo and I'm using vitest workspace to test them. Some packages in this repo have test files while some other packages don't. However, even if I have --coverage.all=false, all packages are included in the coverage reporter.
Does it work when defined in configuration file? Or does --coverage.all=0 work?
After quick testing it seems that there might be some CLI argument parsing issues, again. 😢
It looks like cac does a great job of parsing args, but leaves it up to the client to convert strings to other types. The Negated Options section of the README suggests a different schema that would allow for boolean options, though:
To allow an option whose value is false, you need to manually specify a negated option:
cli
.command('build [project]', 'Build a project')
.option('--no-config', 'Disable config file')
.option('--config <path>', 'Use a custom config file')
This will let CAC set the default value of config to true, and you can use --no-config flag to set it to false.
Describe the bug
I have multiple packages in a monorepo and I'm using vitest workspace to test them. Some packages in this repo have test files while some other packages don't. However, even if I have
--coverage.all=false
, all packages are included in the coverage reporter.Reproduction
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: