Jest and React Native Testing Library
This is how you should test ๐งช your react-native โ๏ธ components withKent C. Dodds' workshop Test React Components with Jest and React Testing Library. For more info check Epic React
๐ Inspired byIn this repo you'll find several examples that will cover:
- ๐ Clicking buttons and asserting onPress' outcome.
- ๐ฒ Filling a simple login form and asserting successful submission.
- ๐ฃ Custom hook testing (number of alternatives).
- ๐ก Mocking fetch calls.
- ๐งญ Mocking navigation through screens. (react navigation v5)
- ๐ E2E feel due to real navigation throughout screens.
- ๐ฅ Handling and mocking providers.