This example showcases Reassure setup for React Native Expo app.
- Install
@testing-library/react-nativeasdevDependenciesto setup basic React Native Testing Library setup. All other required deps should be already in the template setup. - Copy
jest.config.jsfrom this repo for RNTL tests to run - Install
reassureanddangerasdevDependencies - Run
yarn reassure initto:- generate
reassure-tests.shCI script - generate
dangerfile.jsconfig fordanger - add
.reasureentry to.gitignore
- generate
- (optional) Add
configure({ testingLibrary: 'react-native' });to yourjest-setup.jsfile