Course's logo Course
pro
Testing React Native Apps
13 videos 1 hrs 13 mins 04 April 2024

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!

start course start course

💪 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!

2 min
view

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.

3 min
view

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.

3 min
view

⚙️ Unit & Integration Testing

Unit Tests with Jest

Learn how to write unit tests with Jest

10 min
view

Snapshot Tests

Understand how to write snapshot tests for React Native components using the renderer package.

5 min
view

React Native Testing Library

We set up React Native Testing Library to test our React Native components.

10 min
view

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.

9 min
view

Testing Fetch Requests

In this video, we'll write a test for a component that makes a fetch request to an API.

9 min
view

Mocking Modules

Learn how to mock modules in your tests using the `jest.mock` function.

7 min
view

👀 E2E Tests

Setting up Maestro

Learn to set up Maestro for end to end testing in your React Native app.

2 min
view

Creating Flows

Learn how to create a flow with Maestro Studio to test your React Native app.

7 min
view

😮‍💨 Tear Down

Code Coverage Reports

Learn how to generate code coverage reports for your Tests.

3 min
view

Additional Material

Extend your knowledge with additional material.

3 min
view