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

YouTube

Next.js with React Testing Library, Jest, TypeScript

Dave Gray via YouTube

Overview

Limited-Time Offer: Up to 75% Off Coursera Plus!
7000+ certificate courses from Google, Microsoft, IBM, and many more.
Learn how to write tests in Next.js using React Testing Library, Jest, and TypeScript. This tutorial guides you through setting up testing in Next.js 13 with App Router and TypeScript, helping you write your initial tests in Next.js. The course covers creating a Next.js project, adding dependencies, addressing issues with Next.js & Jest, configuring Jest, setting up ESLint, writing component tests following the AAA pattern, and conducting multiple tests for the same component. The teaching method involves step-by-step instructions and practical demonstrations. This course is designed for beginners interested in web development and testing in Next.js with React Testing Library, Jest, and TypeScript.

Syllabus

Intro
Welcome
Lesson Goals
Create a Next.js Project
Add dependencies
Current issue with Next.js & Jest
Add scripts
Jest config
Jest setup
ESLint
Writing Your First Component Test & AAA Pattern
Multiple Tests for the Same Component
For More Information

Taught by

Dave Gray

Reviews

Start your review of Next.js with React Testing Library, Jest, TypeScript

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.