npm.io
0.87.1 • Published 1 month ago

@react-native/jest-preset

Licence
MIT
Version
0.87.1
Deps
5
Size
45 kB
Vulns
0
Weekly
0
Stars
126.5K

@react-native/jest-preset

npm npm downloads

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.

Keywords