Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jest-worker in CRA tests #14050

Merged
merged 1 commit into from Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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