Skip to content

Commit 68a4ad3

Browse files
robhoganOlimpiaZurek
authored andcommitted
Update Jest to ^29.2.1 (facebook#35014)
Summary: Pull Request resolved: facebook#35014 X-link: facebook/metro#881 Following on from facebook#34724 and facebook#34972, 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. Changelog: [General] [Changed] - Upgrade Jest in React Native template to ^29.2.1 Reviewed By: jacdebug Differential Revision: D40386349 fbshipit-source-id: 43f5a69cf546df09e2f02542ebf50130d65f0436
1 parent a32bb3f commit 68a4ad3

File tree

5 files changed

+360
-375
lines changed

5 files changed

+360
-375
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"react": "18.2.0"
109109
},
110110
"dependencies": {
111-
"@jest/create-cache-key-function": "^29.0.3",
111+
"@jest/create-cache-key-function": "^29.2.1",
112112
"@react-native-community/cli": "9.2.1",
113113
"@react-native-community/cli-platform-android": "9.2.1",
114114
"@react-native-community/cli-platform-ios": "9.2.1",
@@ -120,7 +120,7 @@
120120
"base64-js": "^1.1.2",
121121
"event-target-shim": "^5.0.1",
122122
"invariant": "^2.2.4",
123-
"jest-environment-node": "^29.0.3",
123+
"jest-environment-node": "^29.2.1",
124124
"jsc-android": "^250230.2.1",
125125
"memoize-one": "^5.0.0",
126126
"metro-react-native-babel-transformer": "0.72.3",

packages/hermes-inspector-msggen/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"@babel/cli": "^7.14.0",
2121
"@babel/preset-env": "^7.14.0",
2222
"@babel/preset-flow": "^7.14.0",
23-
"jest": "^29.0.3"
23+
"jest": "^29.2.1"
2424
},
2525
"jest": {
2626
"transform": {

repo-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint-plugin-relay": "^1.8.3",
3939
"flow-bin": "^0.190.0",
4040
"inquirer": "^7.1.0",
41-
"jest": "^29.0.3",
41+
"jest": "^29.2.1",
4242
"jest-junit": "^10.0.0",
4343
"jscodeshift": "^0.13.1",
4444
"metro-babel-register": "0.72.3",

template/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"@babel/core": "^7.12.9",
1818
"@babel/runtime": "^7.12.5",
1919
"@react-native-community/eslint-config": "^3.0.0",
20-
"babel-jest": "^29.0.3",
20+
"babel-jest": "^29.2.1",
2121
"eslint": "^8.19.0",
22-
"jest": "^29.0.3",
22+
"jest": "^29.2.1",
2323
"metro-react-native-babel-preset": "0.72.3",
2424
"react-test-renderer": "18.2.0"
2525
},

0 commit comments

Comments
 (0)