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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial shows how to set up Jest and React Testing Library with TypeScript in a Next.js 13 App Router project. Learners write component tests using the AAA pattern and add multiple tests for a component.

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.