Update jest-worker in CRA tests (#14050)

This commit is contained in:
Nicolò Ribaudo 2021-12-14 01:09:34 +01:00 committed by GitHub
parent bd3e6b1dd8
commit f32e3dddc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,20 +45,18 @@ if [[ "$(node --version)" == v17.* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider export NODE_OPTIONS=--openssl-legacy-provider
fi 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 " node -e "
var pkg = require('./package.json'); var pkg = require('./package.json');
pkg.resolutions = { pkg.resolutions = {
'jest-worker': '27.3.1' 'jest-worker': '27.4.5'
}; };
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2)); 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 npm install --ignore-scripts
npx npm-force-resolutions npx npm-force-resolutions