Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Apr 25, 2023
1 parent f569688 commit 0fbe4b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/integration-tests/e2e-jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source utils/cleanup.sh
set -x

# Clone jest
git clone --depth=1 https://github.com/facebook/jest /tmp/jest
git clone --depth=1 https://github.com/jestjs/jest /tmp/jest
cd /tmp/jest || exit

# Update @babel/* dependencies
Expand Down Expand Up @@ -53,6 +53,9 @@ if [ "$BABEL_8_BREAKING" = true ] ; then
sed -i "s/isTSX: sourceFilePath.endsWith('x')//g" packages/jest-snapshot/src/InlineSnapshots.ts
sed -i "s%'TypeScript syntax plugin added by Jest snapshot',%'TypeScript syntax plugin added by Jest snapshot'],[require.resolve('@babel/plugin-syntax-jsx')%g" packages/jest-snapshot/src/InlineSnapshots.ts

# Delete once https://github.com/jestjs/jest/pull/14109 is merged
sed -i "s/blacklist/denylist/g" packages/babel-plugin-jest-hoist/src/index.ts

node -e "
var pkg = require('./package.json');
pkg.resolutions || (pkg.resolutions = {});
Expand Down
4 changes: 4 additions & 0 deletions scripts/integration-tests/e2e-vue-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ sed -i 's%toMatch(`regenerator-runtime/runtime`)%toMatch(`@babel/runtime/helpers
if [ "$BABEL_8_BREAKING" = true ] ; then
# This option is renamed in Babel 8
sed -i 's/legacy: decoratorsLegacy !== false/version: decoratorsLegacy === false ? "legacy": "2021-12"/g' packages/@vue/babel-preset-app/index.js

# Delete once https://github.com/jestjs/jest/pull/14109 is released
sed -i "s/blacklist/denylist/g" node_modules/@jest/transform/build/ScriptTransformer.js

fi

# Test
Expand Down

0 comments on commit 0fbe4b8

Please sign in to comment.