From 76e55dff96db63ae27bcaf638a2e5e738e4f5840 Mon Sep 17 00:00:00 2001 From: Amy Yan Date: Tue, 13 Aug 2024 12:37:36 +1000 Subject: [PATCH] fix: `scripts/test.mjs` now takes additional arguments --- scripts/test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',