Skip to content

Commit

Permalink
fix: pass nodejs exec args to workers
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jan 18, 2023
1 parent d8548c6 commit 32d8490
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vitest/src/node/pool.ts
Expand Up @@ -44,13 +44,17 @@ export function createPool(ctx: Vitest): WorkerPool {

execArgv: ctx.config.deps.registerNodeLoader
? [
...process.execArgv,
'--require',
suppressLoaderWarningsPath,
'--experimental-loader',
loaderPath,
...conditions,
]
: conditions,
: [
...process.execArgv,
...conditions,
],
}

if (ctx.config.isolate) {
Expand Down

0 comments on commit 32d8490

Please sign in to comment.