Testing React Components

In this video, I'll show you how to write tests for a React component using Jest and the React Testing Library.

Play Icon

about the video

Here, I'll show you how to write tests for a React component using Jest and the React Testing Library.

🎁 FREE TESTING SETUP CHECKLIST

0:00 Intro / Beginning
11:41 Mocking Next.js's Routing System
14:00 Creating placeholders for all the tests that need to be written

This video is part of a larger series where we build a React component from scratch and then write the tests to support it.

+ Part 1: Building the Actual React Tabbed Component
+ Part 2: Intro to Testing
+ Part 3: Setting up our Testing Environment
+ Part 4: Writing Unit Tests
+ Part 5: Testing our React Component - THIS VIDEO
+ Part 6: Looking at Code Coverage - COMING SOON!

πŸ™‹πŸ»β€β™€οΈ INTERESTED in the App from Scratch Course?

πŸ”— LINKS
+ Jest
+ React Testing Library

πŸ€–CODE
+ React Tabbed Component, *starting* point on GitHub
+ React Tabbed Component, *ending* point on GitHub

πŸ‘‰πŸ» Get Updates and Exclusive content at Selfteach.me
πŸ’₯ SelfTeach.me is a Zeal show

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.