Skip to content

Commit

Permalink
fix: add workspace config files to default coverage excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixGraf authored Aug 17, 2023
1 parent 41e828f commit 8b9b748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
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',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
]
```
Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/defaults.ts
Original file line number Diff line number Diff line change
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',
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
]

Expand Down

0 comments on commit 8b9b748

Please sign in to comment.