Skip to content

Commit

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

Pull Request resolved: #881

Following on from facebook/react-native#34724 and facebook/react-native#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 97cddba commit 3f87f36
Show file tree
Hide file tree
Showing 3 changed files with 398 additions and 324 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
"acorn": "^8.7.1",
"babel-jest": "^29.0.3",
"babel-jest": "^29.2.1",
"chalk": "^4.0.0",
"codecov": "^3.6.5",
"debug": "^2.2.0",
Expand All @@ -30,7 +30,7 @@
"invariant": "^2.2.4",
"istanbul-api": "3.0.0",
"istanbul-lib-coverage": "3.0.0",
"jest": "^29.0.3",
"jest": "^29.2.1",
"jest-watch-typeahead": "^2.2.0",
"lerna": "2.4.0",
"metro-babel-register": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/metro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"devDependencies": {
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"babel-jest": "^29.0.3",
"babel-jest": "^29.2.1",
"dedent": "^0.7.0",
"jest-snapshot": "^26.5.2",
"metro-babel-register": "0.73.2",
Expand Down
Loading

0 comments on commit 3f87f36

Please sign in to comment.