diff --git a/scripts/test.mjs b/scripts/test.mjs index 1b398da6..32bd67eb 100644 --- a/scripts/test.mjs +++ b/scripts/test.mjs @@ -25,8 +25,8 @@ async function main() { }); const jestArgs = []; console.error('Running jest:'); - console.error(['jest', ...jestArgs].join(' ')); - childProcess.execFileSync('jest', jestArgs, { + console.error(['jest', ...jestArgs, ...process.argv.slice(2)].join(' ')); + childProcess.execFileSync('jest', [...jestArgs, ...process.argv.slice(2)], { env: { ...process.env, NODE_OPTIONS: '--experimental-vm-modules',