Skip to content

Commit

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

Following on from the recent upgrade from Jest 26->27, this brings us up to present day Jest 29 for tests of React Native itself, Metro, and Meta-internal code. An update to the template for RN apps will follow.

Changelog:
[Internal][Fixed] Update to Jest 29

Reviewed By: huntie

Differential Revision: D39543504

fbshipit-source-id: b47fdb678212b475881ec19085f6cd45a4530333
  • Loading branch information
robhogan authored and facebook-github-bot committed Sep 20, 2022
1 parent 44355fd commit 69607ae
Show file tree
Hide file tree
Showing 3 changed files with 650 additions and 832 deletions.
15 changes: 11 additions & 4 deletions package.json
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": "^27.5.1",
"babel-jest": "^29.0.3",
"chalk": "^4.0.0",
"codecov": "^3.6.5",
"debug": "^2.2.0",
Expand All @@ -30,8 +30,8 @@
"invariant": "^2.2.4",
"istanbul-api": "3.0.0",
"istanbul-lib-coverage": "3.0.0",
"jest": "^27.5.1",
"jest-watch-typeahead": "~1.0.0",
"jest": "^29.0.3",
"jest-watch-typeahead": "^2.2.0",
"lerna": "2.4.0",
"metro-babel-register": "*",
"micromatch": "^4.0.4",
Expand Down Expand Up @@ -66,9 +66,16 @@
"/node_modules/",
"packages/[^/]+/build/"
],
"snapshotFormat": {
"escapeString": true,
"printBasicPrototype": true
},
"testEnvironment": "node",
"testRegex": "/__tests__/.*-test\\.js$",
"timers": "legacy",
"fakeTimers": {
"enableGlobally": true,
"legacyFakeTimers": true
},
"transform": {
"\\.js$": "<rootDir>/scripts/babelJestTransformer.js"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/metro/package.json
Expand Up @@ -68,7 +68,7 @@
"devDependencies": {
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"acorn": "^8.7.1",
"babel-jest": "^27.5.1",
"babel-jest": "^29.0.3",
"dedent": "^0.7.0",
"jest-snapshot": "^26.5.2",
"metro-babel-register": "0.72.3",
Expand Down

0 comments on commit 69607ae

Please sign in to comment.