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

Pin jest-worker to 27.3.1 in CRA e2e tests #14040

Merged
merged 2 commits into from Dec 11, 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
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'
nicolo-ribaudo marked this conversation as resolved.
Show resolved Hide resolved
};
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