Skip to content

Commit 429e1a7

Browse files
authored
fix(coverage): exclude bench files from coverage (#5983)
1 parent 200a434 commit 429e1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const defaultCoverageExcludes = [
3838
'cypress/**',
3939
'test?(s)/**',
4040
'test?(-*).?(c|m)[jt]s?(x)',
41-
'**/*{.,-}{test,spec}?(-d).?(c|m)[jt]s?(x)',
41+
'**/*{.,-}{test,spec,bench,benchmark}?(-d).?(c|m)[jt]s?(x)',
4242
'**/__tests__/**',
4343
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
4444
'**/vitest.{workspace,projects}.[jt]s?(on)',

0 commit comments

Comments
 (0)