Explore Library
React NativeTesting (Unit, Component & E2E)

122 items

1

Testing Navigation-Dependent Components

Slides / Video
2

Asserting Element Presence

Code Quiz
3

Rendering With a Context Provider

Code Quiz
4

Detox waitFor Synchronization

Code Quiz
5

Mocking Network Requests in Tests

Slides / Video
6

Testing Async Code with async/await

Code Quiz
7

Accessibility Queries getByRole

Code Quiz
8

getBy vs queryBy vs findBy

Code Quiz
9

Querying by testID with getByTestId

Code Quiz
10

Querying by Text with getByText

Code Quiz
11

Rendering with RNTL render

Code Quiz
12

Faking Timers with jest.useFakeTimers

Code Quiz
13

Spying with jest.spyOn

Code Quiz
14

Simulating User Events with fireEvent

Slides / Video
15

Using testID for Element Selection

Slides / Video
16

Querying Elements in Tests

Slides / Video
17

Rendering Components with render()

Slides / Video
18

React Native Testing Library Overview

Slides / Video
19

Mocking Native Modules & Timers

Slides / Video
20

Mocking Functions with jest.fn & Spies

Slides / Video
21

Mocking Modules with jest.mock

Slides / Video
22

Setup & Teardown: beforeEach, afterEach

Slides / Video
23

Common Jest Matchers

Slides / Video
24

Test Structure: describe, it, expect

Slides / Video
25

Broken describe Block Syntax

Code Quiz
26

Over-Mocking the react-native Module

Code Quiz
27

Matcher Not Actually Invoked

Code Quiz
28

Jest Preset for React Native

Code Quiz
29

jest.fn Missing Parentheses

Code Quiz
30

Comparing Objects with toBe

Code Quiz
31

jest.mock Factory Returns Nothing

Code Quiz
32

Wrong Setup Hook for Reset

Code Quiz
33

Unit Testing Functions & Utilities

Slides / Video
34

Simulators vs Real Devices

Flashcard
35

Configuring Jest for React Native

Slides / Video
36

Jest as the Default Test Runner

Slides / Video
37

Testing Pyramid: Unit, Component, E2E

Slides / Video
38

What & What Not to Test

Slides / Video
39

Running Tests in CI/CD Pipelines

Slides / Video
40

Test Coverage Reports & Thresholds

Slides / Video
41

Writing E2E Test Flows on Device

Slides / Video
42

Maestro as an E2E Testing Alternative

Slides / Video
43

Enabling Jest Coverage Reports

Code Quiz
44

Mocking Fetch in a Test

Code Quiz
45

Cleaning Up Between Tests

Code Quiz
46

Detox Test Structure Basics

Code Quiz
47

Detox Tap and Type Actions

Code Quiz
48

Mocking Navigation Prop

Code Quiz
49

Detox Visibility Expectation

Code Quiz
50

Detox for End-to-End Testing

Slides / Video
51

Waiting for Async UI

Code Quiz
52

Testing a Custom Hook

Code Quiz
53

Verifying a Callback Prop

Code Quiz
54

Wrapping State Updates in act

Code Quiz
55

Snapshot Testing a Component

Code Quiz
56

Firing a Press Event

Code Quiz
57

Simulating Text Input

Code Quiz
58

Testing Components with Providers

Slides / Video
59

Faking Timers

Quiz
60

Maestro E2E Flows

Quiz
61

Mocking Modules with jest.mock

Quiz
62

Jest Config for React Native

Quiz
63

Testing Pyramid Strategy

Quiz
64

Running Tests in CI

Quiz
65

Handling act() Warnings

Quiz
66

Unit Testing Pure Functions

Quiz
67

Querying by testID and Text

Quiz
68

Mocking Native Modules

Quiz
69

Testing with Navigation

Quiz
70

Setup and Teardown Hooks

Quiz
71

Test Structure Basics

Quiz
72

Testing State Changes

Quiz
73

Mocking fetch Requests

Quiz
74

jest.fn vs jest.spyOn

Quiz
75

Rendering with render()

Quiz
76

Detox Matchers and Actions

Quiz
77

Testing with Context Providers

Quiz
78

Snapshot Testing Trade-offs

Quiz
79

Testing Props and Conditional Rendering

Quiz
80

Testing Custom Hooks

Quiz
81

Detox Synchronization

Quiz
82

Coverage Thresholds

Quiz
83

Simulating Events with fireEvent

Quiz
84

Async Queries and waitFor

Quiz
85

Common Jest Matchers

Quiz
86

Detox E2E Fundamentals

Quiz
87

Snapshot Testing Components

Slides / Video
88

Testing Hooks with renderHook

Slides / Video
89

Asserting Component Output

Slides / Video
90

Running Tests in CI/CD

Flashcard
91

Structuring Tests with describe and it

Flashcard
92

Configuring the react-native Preset

Flashcard
93

Debugging Failing Tests

Flashcard
94

Jest as the Default Test Runner

Flashcard
95

Unit Testing Pure Functions

Flashcard
96

Mocking Navigation in Tests

Flashcard
97

The Testing Pyramid

Flashcard
98

Writing E2E Test Flows

Flashcard
99

Spying with jest.spyOn

Flashcard
100

Providing Context and Store Wrappers

Flashcard
101

Updating Stale Snapshots

Flashcard
102

Snapshot Testing Components

Flashcard
103

Using testID for Selection

Flashcard
104

Jest Matchers and expect

Flashcard
105

Querying Elements in RNTL

Flashcard
106

Mocking Native Modules and AsyncStorage

Flashcard
107

Maestro for E2E Flow Testing

Flashcard
108

Testing Hooks with renderHook

Flashcard
109

Simulating Events with fireEvent

Flashcard
110

Test Coverage Reporting

Flashcard
111

Mocking Timers with useFakeTimers

Flashcard
112

Testing Async UI with waitFor

Flashcard
113

Mocking with jest.mock and jest.fn

Flashcard
114

React Native Testing Library Philosophy

Flashcard
115

Rendering Components with render()

Flashcard
116

Detox for End-to-End Testing

Flashcard
117

Simulators/Emulators vs Real Devices

Flashcard
118

Wrapping Updates in act()

Flashcard
119

Setup and Teardown Hooks

Flashcard
120

Appium as an E2E Alternative

Flashcard
121

Mocking Network Calls

Flashcard
122

Testing Async UI with waitFor & findBy

Slides / Video
QuizIntermediate

Testing Custom Hooks

Learn which utility tests hooks in isolation.

Which utility lets you test a custom hook without a component?