Skip to content

Commit 20263d9

Browse files
fix: add workspace config files to default coverage excludes (#3973)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
1 parent 5eb8561 commit 20263d9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/config/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ List of files included in coverage as glob patterns
903903
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
904904
'**/__tests__/**',
905905
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
906+
'**/vitest.{workspace,projects}.[jt]s?(on)',
906907
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
907908
]
908909
```

packages/vitest/src/defaults.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const defaultCoverageExcludes = [
2424
'**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)',
2525
'**/__tests__/**',
2626
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
27+
'**/vitest.{workspace,projects}.[jt]s?(on)',
2728
'**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}',
2829
]
2930

0 commit comments

Comments
 (0)