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

YouTube

Testing a Next.js App with React Testing Library & Jest

Dave Gray via YouTube

Overview

This course teaches how to test a Next.js app using React Testing Library and Jest. The learning outcomes include understanding unit testing vs integration testing, organizing tests in Next.js, and writing tests for various components like Nav, Header, TodoItem, TodoList, and AddTodo. The course covers topics such as testing library query types and provides insights on Next.js 13. The teaching method involves a tutorial format with practical examples and references to Next.js, React Testing Library, Jest, and TypeScript. The intended audience for this course is web developers interested in learning how to effectively test Next.js applications.

Syllabus

Intro
Welcome
Recommended Prerequisites
Lesson Goals
Starter Code
Example App Preview
Unit vs Integration vs E2E Tests
Testing Library Query Types
__tests__ folder organization
Nav component
Header component unit tests
TodoItem component unit tests
TodoList component unit tests
AddTodo component unit tests
App Integration Tests
Notes about Next.js 13

Taught by

Dave Gray

Reviews

Start your review of Testing a Next.js App with React Testing Library & 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.