Skip to content

Commit

Permalink
test: patch verifyPackageTree for test purposes (babel#13567)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Jul 30, 2021
1 parent 0910a28 commit d6950ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/integration-tests/e2e-create-react-app.sh
Expand Up @@ -28,6 +28,13 @@ cd tmp/create-react-app || exit
# This change replaces useBuiltIns: true with runtime: "classic"
sed -i 's/useBuiltIns: true/runtime: "classic"/' packages/babel-preset-react-app/create.js

# create-react-app throws if `@babel/eslint-parser` is not pinned, but we
# must upgrade it for test purposes
sed -i "s#'@babel/eslint-parser',##" packages/react-scripts/scripts/utils/verifyPackageTree.js

# remove this line when https://github.com/facebook/create-react-app/pull/11216 gets merged
sed -i "s#isESLintPluginEnabled && 'babel-eslint',##" packages/react-scripts/scripts/utils/verifyPackageTree.js

bump_deps="$PWD/../../utils/bump-babel-dependencies.js"
node "$bump_deps"
for d in ./packages/*/
Expand Down

0 comments on commit d6950ed

Please sign in to comment.