We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
coverage.exclude
1 parent 08f160e commit 7e62f24Copy full SHA for 7e62f24
docs/config/index.md
@@ -1103,6 +1103,20 @@ List of files included in coverage as glob patterns
1103
1104
List of files excluded from coverage as glob patterns.
1105
1106
+This option overrides all default options. Extend the default options when adding new patterns to ignore:
1107
+
1108
+```ts
1109
+import { coverageConfigDefaults, defineConfig } from 'vitest/config'
1110
1111
+export default defineConfig({
1112
+ test: {
1113
+ coverage: {
1114
+ exclude: ['**/custom-pattern/**', ...coverageConfigDefaults.exclude]
1115
+ },
1116
1117
+})
1118
+```
1119
1120
#### coverage.all
1121
1122
- **Type:** `boolean`
0 commit comments