diff --git a/packages/vitest/src/node/pool.ts b/packages/vitest/src/node/pool.ts index fc4bc5e232dc..baf0ba950b2d 100644 --- a/packages/vitest/src/node/pool.ts +++ b/packages/vitest/src/node/pool.ts @@ -31,7 +31,7 @@ export function createPool(ctx: Vitest): WorkerPool { const maxThreads = ctx.config.maxThreads ?? threadsCount const minThreads = ctx.config.minThreads ?? threadsCount - const conditions = ctx.server.config.resolve.conditions?.flatMap(c => ['-C', c]) || [] + const conditions = ctx.server.config.resolve.conditions?.flatMap(c => ['--conditions', c]) || [] const options: TinypoolOptions = { filename: workerPath,