Skip to content

Commit

Permalink
Enable Babel e2e test for Babel 8 with ESM (#15836)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Aug 3, 2023
1 parent 87483a1 commit 565d7be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests-breaking-esm.yml
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions scripts/integration-tests/e2e-babel.sh
Expand Up @@ -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

0 comments on commit 565d7be

Please sign in to comment.