Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

React Testing with React Testing Library and Vitest/Jest

Programming with Mosh via YouTube

Overview

Learn how to effectively test React applications using React Testing Library and Vitest/Jest in this comprehensive tutorial. Discover essential techniques for testing React components, including rendering, user interactions, and lists. Follow along with practical exercises to test UserAccount, ProductImageGallery, and ExpandableText components. Master the art of simplifying test setups and writing efficient tests to ensure the reliability and quality of your React projects. Gain valuable insights into setting up the development environment, configuring Vitest, and leveraging React Testing Library for robust testing practices.

Syllabus

– Introduction
– Prerequisites
– Course Structure
– How to Take this Course
– Setting Up the Development Environment
– Setting Up the Starter Project
– Setting Up Vitest
– Setting Up React Testing Library
– Testing React Components
– What to Test
– Testing Rendering
– Simplifying Test Setup
– Exercise: Testing UserAccount
– Announcement
– Testing Lists
– Exercise: Testing ProductImageGallery
– Testing User Interactions
– Exercise: Testing ExpandableText
– Simplifying Tests

Taught by

Programming with Mosh

Reviews

Start your review of React Testing with React Testing Library and Vitest/Jest

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.