• Stars
    star
    585
  • Rank 76,419 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is how you should test your react-native components with Jest and React Native Testing Library

banner

No More Hacks and Headaches | Learn How to Test Your Components Before Your Users Will

Covered Examples ๐ŸŽž

Tools in use ๐Ÿ› ๏ธ

How to run the tests ๐Ÿƒโ€โ™€๏ธ

  • Clone the repo
  • Run yarn to install dependencies
  • Run yarn test to run the tests
  • Run yarn test:coverage to run the tests and generate a coverage report

How to run the app ๐Ÿ“ฑ

  • Clone the repo
  • Run yarn to install dependencies
  • Run npx pod-install to install iOS dependencies
  • Run yarn start to start the metro bundler
  • Click i to run the app on iOS simulator or a to run it on Android emulator

Ideas and future improvements ๐Ÿš€

  • ๐Ÿ“ฑ Add E2E tests with Maestro
  • โš›๏ธ Add tests for react native web project

Inspiration, resources and further reading ๐Ÿ“š