Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 670 Bytes

File metadata and controls

16 lines (11 loc) · 670 Bytes

react-native-jest-example

Example with failing jest tests on base react native 0.57.4 project created with react-native init

Created as an example to RN issue react/react-native#22175

Setup

npm install

Broken tests

To run broken tests npm run test:broken

Working tests

To run working tests npm run test:working

Description

These broken examples replicate existing code we have in a production react native app upgrading from RN 0.55.4 to 0.57.4. Syntactically there are no issues and the code gets transpiled correctly by the metro bundler. However it is failing on jest using the react native jest preprocessor.