Fix "e2e-babel" Babel 8 test (#13909)

This commit is contained in:
Nicolò Ribaudo 2021-11-01 21:49:50 +01:00 committed by GitHub
parent 833b39112d
commit 5b29557af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,16 @@ node "$PWD"/scripts/integration-tests/utils/bump-babel-dependencies.js
# Update deps, build and test # Update deps, build and test
if [ "$BABEL_8_BREAKING" = true ] ; then if [ "$BABEL_8_BREAKING" = true ] ; then
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j build-standalone-ci
# Jest hangs forever in the Babel 8 e2e test when using multiple workers, # Jest hangs forever in the Babel 8 e2e test when using multiple workers,
# but we don't know yet why. Until we figure it out (see # but we don't know yet why. Until we figure it out (see
# https://github.com/babel/babel/pull/13618) we can use --runInBand. # https://github.com/babel/babel/pull/13618) we can use --runInBand.
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j build-standalone-ci # Additinally, in Babel 8 tests Jest needs to run with ESM support because
BABEL_ENV=test yarn jest --ci --runInBand # @babel/eslint-parser/lib/worker/babel-core.cjs uses dynamic import() to
# load @babel/core.
NODE_OPTIONS="--experimental-vm-modules" BABEL_ENV=test yarn jest --ci --runInBand
make -j test-clean make -j test-clean
else else
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j test-ci YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j test-ci