From aa699c41853bb710331d54abe7cac67b63e7a930 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Wed, 8 Nov 2023 13:16:13 +0100
Subject: [PATCH] test: enable experimental-vm-modules (#25648)

---
 .github/workflows/build.yml | 2 --
 package.json                | 4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 40e9f9eb44..20f34b1428 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 aa28638d85..a2fe716a42 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",
-- 
GitLab