This is the example repo for:
- Unit testing React Native with the *new* Jest (I) — Snapshots come into play!
- Unit testing React Native with the *new* Jest (II) — Redux: Snapshots for your actions and reducers
Install dependencies:
$ npm install
Run tests:
$ npm test
You can also run them in watch mode:
$ npm test -- --watch
In this mode, you can play changing the app behaviour, breaking the tests and fixing them!