diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40e9f9eb44fb0a..20f34b1428a066 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 aa28638d85e1eb..a2fe716a42e21c 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",