diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 40e9f9eb44fb0a19b3a34698534bbf5b62a1203e..20f34b1428a066aeac3f3fe7177abd3af8defa35 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -344,8 +344,6 @@ jobs:
 
       - name: Unit tests
         shell: bash
-        env:
-          NODE_OPTIONS: --experimental-vm-modules
         run: |
           for shard in ${{ matrix.shards }};
           do
diff --git a/package.json b/package.json
index aa28638d85e1eb61f58bdfb93c5582afc2acb1a9..a2fe716a42e21cb4c14cf3a8a2325ea6801c6739 100644
--- a/package.json
+++ b/package.json
@@ -25,10 +25,10 @@
     "generate": "run-s 'generate:*'",
     "generate:imports": "node tools/generate-imports.mjs",
     "git-check": "node tools/check-git-version.mjs",
-    "jest": "LOG_LEVEL=fatal GIT_ALLOW_PROTOCOL=file jest --logHeapUsage",
+    "jest": "NODE_OPTIONS='--experimental-vm-modules' LOG_LEVEL=fatal GIT_ALLOW_PROTOCOL=file jest --logHeapUsage",
     "jest:14": "run-s 'jest {@}' --",
     "jest:16": "run-s 'jest {@}' --",
-    "jest-debug": "NODE_OPTIONS=--inspect-brk jest --testTimeout=100000000",
+    "jest-debug": "NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --testTimeout=100000000",
     "lint": "run-s ls-lint type-check eslint prettier markdown-lint git-check doc-fence-check",
     "lint-fix": "run-s eslint-fix prettier-fix markdown-lint-fix",
     "ls-lint": "ls-lint",