Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/jest-preset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,3 @@ module.exports = {
```

You can further customize your Jest configuration by specifying other options. See [Jest's `jest.config.js` documentation](https://jestjs.io/docs/configuration) to learn more.

### Migration Note

This Jest preset used to be part of the core `react-native` package and accessible at `react-native/jest-preset.js`. As long as `@react-native/jest-preset` is installed, `react-native/jest-preset.js` will be aliased to this package and continue to work but is deprecated.

Follow the installation instructions above to migrate to `@react-native/jest-preset` and change `preset: 'react-native'` to `preset: '@react-native/jest-preset` to migrate.
26 changes: 0 additions & 26 deletions packages/react-native/jest-preset.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"types": null,
"default": "./src/asset-registry.js"
},
"./jest-preset": "./jest-preset.js",
"./rn-get-polyfills": "./rn-get-polyfills.js",
"./src/fb_internal/*": "./src/fb_internal/*",
"./package.json": "./package.json"
Expand All @@ -69,7 +68,6 @@
"gradle/libs.versions.toml",
"index.js",
"index.js.flow",
"jest-preset.js",
"Libraries",
"LICENSE",
"React-Core.podspec",
Expand Down Expand Up @@ -136,16 +134,12 @@
"featureflags": "node ./scripts/featureflags/index.js"
},
"peerDependencies": {
"@react-native/jest-preset": "0.87.0-main",
"@types/react": "^19.1.1",
"react": "^19.2.3"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"@react-native/jest-preset": {
"optional": true
}
},
"dependencies": {
Expand Down
Loading