Skip to content

Commit

Permalink
fix: use --conditions instead of -C (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 4, 2022
1 parent c46c302 commit b8d3a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/pool.ts
Expand Up @@ -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,
Expand Down

0 comments on commit b8d3a95

Please sign in to comment.