Test React Native Apps with React Native Testing Library
Learn how to use React Native Testing Library to quickly and efficiently write tests for your React Native app!
I’m Spencer Carli. I'm a developer, cat dad, and devout pizza lover.
I’ve been using React Native full-time since it was first open sourced by Facebook in 2015. I’ve built multiple apps, reached over 1.1 million developers through my React Native tutorials, taught thousands through my online courses, and trained teams of developers to effectively use React Native.
React Native School
Wait! Do you use React Native often? Maybe you're building a product on it. If so, you're going to be looking things up often - so why not get access to the best React Native resources on the web?
React Native School gives you access to multiple courses (including this one), a weekly tutorial, access to a private Slack community full of other React Native developers to learn from.
Sound interesting? Check it out!
StartGetting Started & Project Overview (2:25)
StartConfiguring Jest and React Native Testing Library (5:13)
StartBasic Snapshot Test (6:41)
StartUnit Test: Targeting Elements by Text (5:50)
StartUnit Test: Prop Forwarding (4:44)
StartUnit Test: Testing TextInput Functionality (5:00)
StartUnit Test: Testing Button Interaction (4:29)
StartMocking Library & Testing Button Disabled Functionality (11:14)
StartIntegration Test: Showing Error Messages on Create Account Screen (6:22)
StartIntegration Test: Hiding Error Messages on Create Account Screen (7:48)
StartTesting a Fetch Request (8:05)
Get started now!
Don't believe me? Here's what others have to say.
"woot woot, just got an app approved on the app store with my first submission! wouldn't have happened without all the good insights from @spencercarli. thanks man!"
- Rob Carter
"THANK YOU, THANK YOU, THANK YOU. I just built and pushed my first react native app to the App Store. You have NO idea how much time, stress and anxiety you've saved me with this video series. I learned so much from these. New tools, and methods of building for production. I'm not even done yet, I just had to stop and thank you before I continued. YOU. ROCK. simple as that."
- Jonathan Wheat
"Spencer Carli's courses and tutorials have been an immense help to me on my journey to become an Android and iOS mobile app programmer. I've learned not only how to create dynamically functional React Native + Meteor apps, but how to write cleaner, more concise code as well. He has taught me to better utilize the React Native component model--which, along with its cross-platform nature is really its core strength and saves one from redundancy--and to employ Meteor's amazing responsiveness in my apps. All this, and he has always been there with an answer when I've run up against one of those frustrating coding problems as well! I recommend his courses highly."
- Ken Wishart