diff --git a/scripts/test.js b/scripts/test.js
index <HASH>..<HASH> 100644
--- a/scripts/test.js
+++ b/scripts/test.js
@@ -174,7 +174,7 @@ selection
           ? ''
           : `--projects ${jestProjects.join(' ')}`;
 
-        const cmd = `node --max_old_space_size=4096 ${jest} ${projectsParam} ${extraParams}`;
+        const cmd = `cross-env NODE_OPTIONS=--max_old_space_size=4096 ${jest} ${projectsParam} ${extraParams}`;
 
         spawn(cmd);
       }
Core: fix yarn test command on windows