diff --git a/packages/vitest/src/node/pool.ts b/packages/vitest/src/node/pool.ts index 05b153e69e19..fb73fc545226 100644 --- a/packages/vitest/src/node/pool.ts +++ b/packages/vitest/src/node/pool.ts @@ -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 = {