-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
feat: coverageIssues and PRs related to the coverage featureIssues and PRs related to the coverage featurep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Describe the bug
- Discussed in All coverage missing, minimal example #5964
Following configuration should overwrite all default values of coverage.exclude. It should not exclude dist directory:
defineConfig({
test: {
// Only node_modules should be excluded, nothing else
coverage: { exclude: ['**/node_modules/**'] },
}
})Actual: Hard coded default values are still applied. dist is excluded no matter what.
Reproduction
https://github.com/donmccurdy/2024-06-24_vitest_coverage_issue
System Info
AnyUsed Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: coverageIssues and PRs related to the coverage featureIssues and PRs related to the coverage featurep3-minor-bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)