Skip to content

Commit

Permalink
Update Jest to ^29.2.1 (#881)
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/metro#881

Following on from D39543504 (c27501b) and D40379963 (8f33753), this updates Jest to the latest version 29.2.1 across projects and in the OSS React Native new app template.

Importantly this version includes the [new `jest.now()` API](jestjs/jest#13245), which will be useful for exposing internally consistent fake timer mocks of `requestAnimationFrame`, etc., in the new React Native Jest environment.

[General] [Changed] - Upgrade Jest in React Native template to ^29.2.1

Differential Revision: D40386349

fbshipit-source-id: 524a6f19008abcd5b0dad02ef2c3f1c39d10cc29
  • Loading branch information
robhogan authored and facebook-github-bot committed Oct 18, 2022
1 parent f6cfcc3 commit f7901f3
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 375 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"react": "18.2.0"
},
"dependencies": {
"@jest/create-cache-key-function": "^29.0.3",
"@jest/create-cache-key-function": "^29.2.1",
"@react-native-community/cli": "9.1.3",
"@react-native-community/cli-platform-android": "9.1.0",
"@react-native-community/cli-platform-ios": "9.1.2",
Expand All @@ -120,7 +120,7 @@
"base64-js": "^1.1.2",
"event-target-shim": "^5.0.1",
"invariant": "^2.2.4",
"jest-environment-node": "^29.0.3",
"jest-environment-node": "^29.2.1",
"jsc-android": "^250230.2.1",
"memoize-one": "^5.0.0",
"metro-react-native-babel-transformer": "0.72.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/hermes-inspector-msggen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@babel/cli": "^7.14.0",
"@babel/preset-env": "^7.14.0",
"@babel/preset-flow": "^7.14.0",
"jest": "^29.0.3"
"jest": "^29.2.1"
},
"jest": {
"transform": {
Expand Down
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint-plugin-relay": "^1.8.3",
"flow-bin": "^0.190.0",
"inquirer": "^7.1.0",
"jest": "^29.0.3",
"jest": "^29.2.1",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.13.1",
"metro-babel-register": "0.72.3",
Expand Down
4 changes: 2 additions & 2 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"@babel/core": "^7.12.9",
"@babel/runtime": "^7.12.5",
"@react-native-community/eslint-config": "^3.0.0",
"babel-jest": "^29.0.3",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.0.3",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.72.3",
"react-test-renderer": "18.2.0"
},
Expand Down
Loading

0 comments on commit f7901f3

Please sign in to comment.