Test React Native Apps with React Native Testing Library


Last Updated: May 6, 2021

When we test our the components and functions of our app - how do we want to do it? The same way a user would use them!

That's where React Native Testing Library comes in! It gives us the capability to test the various components of our application in the same way a user would actually use them by allowing us to press a button, type into inputs, and more.

It integrates perfectly with Jest and is the first library that makes me want to write tests for my apps. I can't wait to share the library with you!

Please note that I've upgrade code to reflect the latest version of the library. All this means is that react-native-testing-library has been renamed to @testing-library/react-native. Everything else should be the same. The code below each video has been updated.

Want to track your progress? Create an account with React Native School!