Skip to content

Commit

Permalink
fix(coverage): include *.astro by default (#6565)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Sep 25, 2024
1 parent 1371ca6 commit f8ff76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ List of files included in coverage as glob patterns
#### coverage.extension

- **Type:** `string | string[]`
- **Default:** `['.js', '.cjs', '.mjs', '.ts', '.mts', '.tsx', '.jsx', '.vue', '.svelte', '.marko']`
- **Default:** `['.js', '.cjs', '.mjs', '.ts', '.mts', '.tsx', '.jsx', '.vue', '.svelte', '.marko', '.astro']`
- **Available for providers:** `'v8' | 'istanbul'`
- **CLI:** `--coverage.extension=<extension>`, `--coverage.extension=<extension1> --coverage.extension=<extension2>`

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 @@ -73,6 +73,7 @@ export const coverageConfigDefaults: ResolvedCoverageOptions = {
'.vue',
'.svelte',
'.marko',
'.astro',
],
allowExternal: false,
excludeAfterRemap: false,
Expand Down

0 comments on commit f8ff76a

Please sign in to comment.