From b8d3a953cb175a035f59372902d7eb9ba19f941c Mon Sep 17 00:00:00 2001 From: Vladimir Date: Fri, 4 Nov 2022 13:07:49 +0100 Subject: [PATCH] fix: use --conditions instead of -C (#2267) --- packages/vitest/src/node/pool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,