Skip to content

Commit 5b29557

Browse files
Fix "e2e-babel" Babel 8 test (#13909)
1 parent 833b391 commit 5b29557

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/integration-tests/e2e-babel.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,16 @@ node "$PWD"/scripts/integration-tests/utils/bump-babel-dependencies.js
3434

3535
# Update deps, build and test
3636
if [ "$BABEL_8_BREAKING" = true ] ; then
37+
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j build-standalone-ci
38+
3739
# Jest hangs forever in the Babel 8 e2e test when using multiple workers,
3840
# but we don't know yet why. Until we figure it out (see
3941
# https://github.com/babel/babel/pull/13618) we can use --runInBand.
40-
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j build-standalone-ci
41-
BABEL_ENV=test yarn jest --ci --runInBand
42+
# Additinally, in Babel 8 tests Jest needs to run with ESM support because
43+
# @babel/eslint-parser/lib/worker/babel-core.cjs uses dynamic import() to
44+
# load @babel/core.
45+
NODE_OPTIONS="--experimental-vm-modules" BABEL_ENV=test yarn jest --ci --runInBand
46+
4247
make -j test-clean
4348
else
4449
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j test-ci

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy