Course Decription
Testing is an essential part of the React Native development process. It ensures that your app works as expected and that new features don’t break existing functionality. In this course, you’ll learn how to test your React Native apps with Jest, React Testing Library, and also Maestro for E2E tests.
What will I learn?
- 🚀 Setup tests in your React Native app
- 🔥 Write unit tests with Jest
- 🧪 Test components with React Testing Library
- 📱 Mock modules and test fetch requests
- 🤖 Run E2E tests with Maestro
Get ready to level up your React Native app development skills with comprehensive testing techniques. Enroll in “Testing React Native Apps” now and ensure your apps are bug-free and reliable!
💪 Set Up
Course Overview
What are we building in this course, and what will you learn? Let's take a quick look at the course and all objectives!
Testing Libraries & Tools
In this lesson, we'll take a look at some of the most popular libraries and tools for testing React applications including Jest, React Testing Library, and Maestro.
App Setup
This video covers the setup of the course app. We will install the required dependencies and create the app for our test cases.
⚙️ Unit & Integration Testing
Snapshot Tests
Understand how to write snapshot tests for React Native components using the renderer package.
React Native Testing Library
We set up React Native Testing Library to test our React Native components.
Testing User Events
We get practical by testing user events with React Native Testing Library. We'll learn how to use fireEvent and userEvent to simulate user interactions like typing, clicking, and scrolling.
Testing Fetch Requests
In this video, we'll write a test for a component that makes a fetch request to an API.
👀 E2E Tests
Setting up Maestro
Learn to set up Maestro for end to end testing in your React Native app.
Creating Flows
Learn how to create a flow with Maestro Studio to test your React Native app.
😮💨 Tear Down