Skip to content

Commit

Permalink
Pin jest-worker to 27.2.1 in CRA e2e tests (#14040)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 11, 2021
1 parent c59870c commit 2d9fb7f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/integration-tests/e2e-create-react-app.sh
Expand Up @@ -45,7 +45,23 @@ if [[ "$(node --version)" == v17.* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider
fi

# Remove this when https://github.com/facebook/jest/pull/12128 is fixed
node -e "
var pkg = require('./package.json');
pkg.resolutions = {
'jest-worker': '27.3.1'
};
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
"

startLocalRegistry "$PWD"/../../verdaccio-config.yml

# Remove these when https://github.com/facebook/jest/pull/12128 is fixed
npm install --ignore-scripts
npx npm-force-resolutions

npm install

# Test
Expand Down

0 comments on commit 2d9fb7f

Please sign in to comment.