Skip to content

Commit

Permalink
Pin jest-worker in CRA e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 10, 2021
1 parent 3a85ddf commit 8547ae8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/integration-tests/e2e-create-react-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,24 @@ 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
npm install

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

# Test
CI=true npm run test

Expand Down

0 comments on commit 8547ae8

Please sign in to comment.