Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/35014

X-link: https://github.com/facebook/metro/pull/881

Following on from https://github.com/facebook/react-native/pull/34724 and https://github.com/facebook/react-native/pull/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](https://github.com/facebook/jest/pull/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
This commit is contained in:
Rob Hogan 2022-10-19 12:17:39 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 08dafd890c
Коммит 45db65be7e
5 изменённых файлов: 357 добавлений и 372 удалений

Просмотреть файл

@ -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",
@ -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",

Просмотреть файл

@ -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": {

Просмотреть файл

@ -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",

Просмотреть файл

@ -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"
},

717
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу