
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@react-native/jest-preset
Advanced tools
Jest preset for React Native apps.
Install @react-native/jest-preset in your app:
with npm:
npm i @react-native/jest-preset --save-dev
or with yarn:
yarn add -D @react-native/jest-preset
Then, create a file called jest.config.js in your project's root directory. Then load this preset:
module.exports = {
preset: '@react-native/jest-preset',
};
You can further customize your Jest configuration by specifying other options. See Jest's jest.config.js documentation to learn more.
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.
jest-expo is a Jest preset for Expo projects, which are a subset of React Native applications. It provides similar functionalities to @react-native/jest-preset but is tailored specifically for Expo, including additional configurations for Expo-specific modules and APIs.
react-native-testing-library is a testing utility for React Native that provides helpers for testing React Native components. While it does not provide a Jest preset, it complements @react-native/jest-preset by offering utilities to render and interact with components in a test environment.
metro-react-native-babel-preset is a Babel preset for React Native projects. While it focuses on Babel configuration rather than Jest, it is often used alongside @react-native/jest-preset to ensure that JavaScript code is transpiled correctly for both development and testing.
FAQs
Jest preset for React Native apps
The npm package @react-native/jest-preset receives a total of 1,555,561 weekly downloads. As such, @react-native/jest-preset popularity was classified as popular.
We found that @react-native/jest-preset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.