🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@react-native/jest-preset

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native/jest-preset

Jest preset for React Native apps

latest
Source
npmnpm
Version
0.85.3
Version published
Weekly downloads
54K
-6.95%
Maintainers
2
Weekly downloads
 
Created
Source

@react-native/jest-preset

Jest preset for React Native apps.

Usage

Installation

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

Configuring Jest

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.

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.

Keywords

jest

FAQs

Package last updated on 05 May 2026

Did you know?

Socket

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.

Install

Related posts