Skip to content

Commit

Permalink
fix(coverage): include clover reporter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 28, 2022
1 parent 5bd5667 commit 5862e32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/defaults.ts
Expand Up @@ -28,7 +28,7 @@ const coverageConfigDefaults = {
reportsDirectory: './coverage',
excludeNodeModules: true,
exclude: defaultCoverageExcludes,
reporter: ['text', 'html'],
reporter: ['text', 'html', 'clover'],
allowExternal: false,
// default extensions used by c8, plus '.vue' and '.svelte'
// see https://github.com/istanbuljs/schema/blob/master/default-extension.js
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/node/cli-api.ts
Expand Up @@ -20,7 +20,7 @@ export async function startVitest(cliFilters: string[], options: CliOptions, vit

if (options.run)
options.watch = false
if (options.browser) // enabling threads in browser mode causes inconsistensies
if (options.browser) // enabling threads in browser mode causes inconsistences
options.threads = false

// this shouldn't affect _application root_ that can be changed inside config
Expand Down

0 comments on commit 5862e32

Please sign in to comment.