Skip to content

Commit

Permalink
Update Jest to ^29.2.1 (#35014)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #35014

X-link: facebook/metro#881

Following on from #34724 and #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
  • Loading branch information
robhogan authored and facebook-github-bot committed Oct 19, 2022
1 parent 08dafd8 commit 45db65b
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 375 deletions.
4 changes: 2 additions & 2 deletions package.json
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.2.1",
"@react-native-community/cli-platform-android": "9.2.1",
"@react-native-community/cli-platform-ios": "9.2.1",
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
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
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
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

0 comments on commit 45db65b

Please sign in to comment.