Skip to content

Commit

Permalink
Update jest-worker in CRA tests (#14050)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Dec 14, 2021
1 parent bd3e6b1 commit f32e3dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/integration-tests/e2e-create-react-app.sh
Expand Up @@ -45,20 +45,18 @@ if [[ "$(node --version)" == v17.* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider
fi

# Remove this when https://github.com/facebook/jest/pull/12128 is fixed
startLocalRegistry "$PWD"/../../verdaccio-config.yml

# Remove this when CRA updates jest-worker in their lockfile
node -e "
var pkg = require('./package.json');
pkg.resolutions = {
'jest-worker': '27.3.1'
'jest-worker': '27.4.5'
};
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

Expand Down

0 comments on commit f32e3dd

Please sign in to comment.