Exclude {test,spec}-d files from coverage by default #5630
Labels
feat: coverage
Issues and PRs related to the coverage feature
good first issue
Good for newcomers
pr welcome
Clear and concise description of the problem
https://stackblitz.com/edit/vitest-dev-vitest-rrhq6a
Currently, {test,spec}-d files need to be manually added to
coverage.exclude
.Suggested solution
Regular test files are excluded from coverage by default. Similarly, it will be helpful to add {test,spec}-d file pattern to
coverageConfigDefaults.exclude
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: