mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
45db65be7e
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
30 lines
677 B
JSON
30 lines
677 B
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"react": "18.2.0",
|
|
"react-native": "1000.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@babel/runtime": "^7.12.5",
|
|
"@react-native-community/eslint-config": "^3.0.0",
|
|
"babel-jest": "^29.2.1",
|
|
"eslint": "^8.19.0",
|
|
"jest": "^29.2.1",
|
|
"metro-react-native-babel-preset": "0.72.3",
|
|
"react-test-renderer": "18.2.0"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native"
|
|
}
|
|
}
|