Skip to content

Commit

Permalink
fix: don't generate coverage folder when coverage is not enabled (#1403)
Browse files Browse the repository at this point in the history
Co-authored-by: Bob Fanger <b.fanger@wearetriple.com>
  • Loading branch information
bfanger and Bob Fanger committed May 31, 2022
1 parent c5b7a72 commit 6c424de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/pool.ts
Expand Up @@ -46,7 +46,7 @@ export function createPool(ctx: Vitest): WorkerPool {
options.minThreads = 1
}

if (ctx.config.coverage)
if (ctx.config.coverage.enabled)
process.env.NODE_V8_COVERAGE ||= ctx.config.coverage.tempDirectory

options.env = {
Expand Down

0 comments on commit 6c424de

Please sign in to comment.