Skip to content
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

fix: add workspace config files to default coverage excludes #3973

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/config/index.md
Expand Up @@ -899,6 +899,7 @@ List of files included in coverage as glob patterns
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
'**/__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/vitest.{workspace,projects}.[jt]s',
FelixGraf marked this conversation as resolved.
Show resolved Hide resolved
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
]
```
Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/defaults.ts
Expand Up @@ -24,6 +24,7 @@ const defaultCoverageExcludes = [
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
'**/__tests__/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'**/vitest.{workspace,projects}.[jt]s',
AriPerkkio marked this conversation as resolved.
Show resolved Hide resolved
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
]

Expand Down