Skip to content

Commit 2d9fb7f

Browse files
Pin jest-worker to 27.2.1 in CRA e2e tests (#14040)
1 parent c59870c commit 2d9fb7f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

scripts/integration-tests/e2e-create-react-app.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,23 @@ if [[ "$(node --version)" == v17.* ]]; then
4545
export NODE_OPTIONS=--openssl-legacy-provider
4646
fi
4747

48+
# Remove this when https://github.com/facebook/jest/pull/12128 is fixed
49+
node -e "
50+
var pkg = require('./package.json');
51+
52+
pkg.resolutions = {
53+
'jest-worker': '27.3.1'
54+
};
55+
56+
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
57+
"
58+
4859
startLocalRegistry "$PWD"/../../verdaccio-config.yml
60+
61+
# Remove these when https://github.com/facebook/jest/pull/12128 is fixed
62+
npm install --ignore-scripts
63+
npx npm-force-resolutions
64+
4965
npm install
5066

5167
# Test

0 commit comments

Comments
 (0)