122 items
Testing Navigation-Dependent Components
Slides / VideoAsserting Element Presence
Code QuizDetox waitFor Synchronization
Code QuizRendering With a Context Provider
Code QuizMocking Network Requests in Tests
Slides / VideoQuerying by testID with getByTestId
Code QuizSpying with jest.spyOn
Code QuizTesting Async Code with async/await
Code QuizFaking Timers with jest.useFakeTimers
Code QuizRendering with RNTL render
Code QuizQuerying by Text with getByText
Code QuizgetBy vs queryBy vs findBy
Code QuizAccessibility Queries getByRole
Code QuizSimulating User Events with fireEvent
Slides / VideoUsing testID for Element Selection
Slides / VideoQuerying Elements in Tests
Slides / VideoRendering Components with render()
Slides / VideoReact Native Testing Library Overview
Slides / VideoMocking Native Modules & Timers
Slides / VideoMocking Functions with jest.fn & Spies
Slides / VideoMocking Modules with jest.mock
Slides / VideoSetup & Teardown: beforeEach, afterEach
Slides / VideoCommon Jest Matchers
Slides / VideoTest Structure: describe, it, expect
Slides / VideoMatcher Not Actually Invoked
Code QuizBroken describe Block Syntax
Code QuizComparing Objects with toBe
Code Quizjest.mock Factory Returns Nothing
Code QuizJest Preset for React Native
Code QuizWrong Setup Hook for Reset
Code Quizjest.fn Missing Parentheses
Code QuizOver-Mocking the react-native Module
Code QuizUnit Testing Functions & Utilities
Slides / VideoSimulators vs Real Devices
FlashcardConfiguring Jest for React Native
Slides / VideoJest as the Default Test Runner
Slides / VideoTesting Pyramid: Unit, Component, E2E
Slides / VideoWhat & What Not to Test
Slides / VideoRunning Tests in CI/CD Pipelines
Slides / VideoTest Coverage Reports & Thresholds
Slides / VideoWriting E2E Test Flows on Device
Slides / VideoMaestro as an E2E Testing Alternative
Slides / VideoEnabling Jest Coverage Reports
Code QuizDetox Test Structure Basics
Code QuizMocking Navigation Prop
Code QuizDetox Visibility Expectation
Code QuizDetox Tap and Type Actions
Code QuizMocking Fetch in a Test
Code QuizCleaning Up Between Tests
Code QuizDetox for End-to-End Testing
Slides / VideoFiring a Press Event
Code QuizWaiting for Async UI
Code QuizWrapping State Updates in act
Code QuizSimulating Text Input
Code QuizSnapshot Testing a Component
Code QuizTesting a Custom Hook
Code QuizVerifying a Callback Prop
Code QuizTesting Components with Providers
Slides / VideoTesting with Context Providers
QuizSnapshot Testing Trade-offs
QuizTesting Props and Conditional Rendering
QuizDetox Matchers and Actions
QuizMaestro E2E Flows
QuizRendering with render()
Quizjest.fn vs jest.spyOn
QuizMocking fetch Requests
QuizTesting State Changes
QuizTest Structure Basics
QuizSetup and Teardown Hooks
QuizTesting Custom Hooks
QuizDetox Synchronization
QuizCoverage Thresholds
QuizSimulating Events with fireEvent
QuizTesting with Navigation
QuizMocking Native Modules
QuizQuerying by testID and Text
QuizFaking Timers
QuizUnit Testing Pure Functions
QuizHandling act() Warnings
QuizRunning Tests in CI
QuizTesting Pyramid Strategy
QuizJest Config for React Native
QuizAsync Queries and waitFor
QuizCommon Jest Matchers
QuizDetox E2E Fundamentals
QuizMocking Modules with jest.mock
QuizSnapshot Testing Components
Slides / VideoTesting Hooks with renderHook
Slides / VideoAsserting Component Output
Slides / VideoSetup and Teardown Hooks
FlashcardTest Coverage Reporting
FlashcardUnit Testing Pure Functions
FlashcardSpying with jest.spyOn
FlashcardThe Testing Pyramid
FlashcardSnapshot Testing Components
FlashcardWriting E2E Test Flows
FlashcardUpdating Stale Snapshots
FlashcardProviding Context and Store Wrappers
FlashcardSimulating Events with fireEvent
FlashcardMocking with jest.mock and jest.fn
FlashcardDetox for End-to-End Testing
FlashcardReact Native Testing Library Philosophy
FlashcardTesting Hooks with renderHook
FlashcardJest Matchers and expect
FlashcardSimulators/Emulators vs Real Devices
FlashcardTesting Async UI with waitFor
FlashcardMaestro for E2E Flow Testing
FlashcardAppium as an E2E Alternative
FlashcardQuerying Elements in RNTL
FlashcardUsing testID for Selection
FlashcardMocking Native Modules and AsyncStorage
FlashcardMocking Timers with useFakeTimers
FlashcardConfiguring the react-native Preset
FlashcardMocking Network Calls
FlashcardRunning Tests in CI/CD
FlashcardWrapping Updates in act()
FlashcardMocking Navigation in Tests
FlashcardRendering Components with render()
FlashcardStructuring Tests with describe and it
FlashcardDebugging Failing Tests
FlashcardJest as the Default Test Runner
FlashcardTesting Async UI with waitFor & findBy
Slides / Videojest.fn Missing Parentheses
A mock callback is created incorrectly and the call assertion breaks.
test('calls the callback', () => {
const mockFn = jest.fn;
mockFn('hello');
expect(mockFn).toHaveBeenCalledWith('hello');
});What is the bug with the mock function?