diff --git a/.github/workflows/e2e-tests-breaking-esm.yml b/.github/workflows/e2e-tests-breaking-esm.yml index 3a63ff3a3444..5cec8a9a79cc 100644 --- a/.github/workflows/e2e-tests-breaking-esm.yml +++ b/.github/workflows/e2e-tests-breaking-esm.yml @@ -46,7 +46,7 @@ jobs: matrix: # todo: verify which of these tests can be re-enabled project: - # - babel + - babel - create-react-app # - vue-cli # - jest diff --git a/scripts/integration-tests/e2e-babel.sh b/scripts/integration-tests/e2e-babel.sh index 995bcad41a45..9ed18d1b8afc 100755 --- a/scripts/integration-tests/e2e-babel.sh +++ b/scripts/integration-tests/e2e-babel.sh @@ -20,19 +20,23 @@ cd ../.. # TEST # #==============================================================================# -if [ "$BABEL_8_BREAKING" = true ] ; then - # This option is removed in Babel 8 - sed -i 's/allowDeclareFields: true,\?/\/* allowDeclareFields: true *\//g' babel.config.js -fi - startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml # We only bump dependencies in the top-level package.json, because workspaces # already use the workspace: protocol so will get the version in the monorepo # and not from npm. node "$PWD"/scripts/integration-tests/utils/bump-babel-dependencies.js +export YARN_ENABLE_IMMUTABLE_INSTALLS=false + +if [ "$BABEL_8_BREAKING" = true ] ; then + # This option is removed in Babel 8 + sed -i 's/allowDeclareFields: true,\?/\/* allowDeclareFields: true *\//g' babel.config.js + + # Babel 8 only supports ESM + make use-esm +fi # Build and test -YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j test-ci +make -j test-ci cleanup