Testing Next.js Apps with Jest, Testing Library and Cypress (Udemy.com)
Learn to test a real-world serverless React app with routes, authentication, database and more!
Created by: Bonnie Schulkin
Last updated October 2024
What you will learn
- Testing Next . js UI, API, routes, authentication and database interactions
- When to use unit testing, integration testing and end-to-end testing -- and why!
- Strategies for testing SSG, SSR, ISR and CSR (including cache updates and SWR revalidation intervals)
- How to use a test database for tests that involve data fetching and mutations
How it compares
Against the other 281 rated Udemy courses in Software Testing on CourseDuck:
- Rating4.4 out of 5higher than 35% of them
- Reviews412#189 of 282 by number of reviews
- Length8 hourslonger than 55% of them
- Last updatedOctober 2024earlier than 62% of them
Course Description
Learn how to test your Next.js app from top to bottom! Tests provide confidence that your Next.js app won't be released with embarrassing, costly bugs. Employers need developers who know how to write tests!
Comprehensive Next.js App Testing
This course teaches how to test all aspects of a Next.js application, including:
UI unit tests
API unit tests
Next.js routes
Cached pages
Data updates (both to the cache and via SWR refresh interval)
Authentication
End-to-End tests for a complete user flow
The course uses a cross-section of testing technologies, featuring:
Jest
React Testing Library
Mock Service Worker
Cypress
Cypress Testing Library
You'll also learn a wide array of testing techniques, such as:
Using a test database
Environment variables
Jest module mocking
Testing definitions and tradeoffs (not necessarily a technique, but helpful in making decisions about what to test!)
Practice what you've learned
The course includes "code quizzes" -- challenges to write code based on the concepts you've just learned. For more concept-heavy sections (such as testing definitions and guidelines) the course provides multiple-choice quizzes.
Test a pre-written app
A Next.js app has already been written for the course, so the course content can focus on testing. The course tests a popular concert venue app called... Popular Concert Venue (the owners were apparently running low on creativity when they named the place). The app features shows from bands such as The Joyous Nun Riot and Avalanche of Cheese. Randomized, mad-libs style band descriptions and images add to the fun.
Proven Instructor
The instructor is a proven Udemy veteran, with reputation for clear explanations, Q&A responsiveness, conciseness, and useful practice activities. Here are some reviews from the instructor's other courses:
A great course, probably the best testing course I've ever taken.
After watching other courses on the same topic, this is the first one that I'm actually excited to dig into.
This course exceeded all my expectations. It has the right amount between practice and theory. The teacher is amazing and thoughtful and she answers the students.
I have taken several courses on Udemy, and this is the best one where the teacher doesnt just lecture, but actually structures the class so that I learn the material.
Instructor Details
- 4.4 Rating
412 Reviews
Bonnie Schulkin
My teaching career started when I played school with my (not very willing) younger brother as a kid. I gradually expanded my horizons to teaching (marginally) more willing high school students, and more recently have taught software development at various boot camps to delightfully willing adults. I have been working in the software industry on and off since the mid-90s, which predates the birth of many coders in the San Francisco tech scene(!).
More courses by Bonnie Schulkin
【한글자막】 React Query / TanStack Query : React로 서버 상태 관리하기 (2024)
4.8 (350 Reviews)
Provider: Udemy
Time: 7.1h
$64.99
Advanced React Testing: Redux Saga and React Router (2023)
4.6 (182 Reviews)
Provider: Udemy
Time: 6.8h
$69.99
【한글자막】 Jest / Vitest 를 활용한 React 테스팅 라이브러리 (2024)
4.7 (179 Reviews)
Provider: Udemy
Time: 7.3h
$64.99
More Software Testing courses
ZeroToHero TestNG Framework - From Basics to Advanced (2026)
4.9 (828 Reviews)
Provider: Udemy
Time: 6.2h
$59.99
Selenium WebDriver with Java- Basics to Advanced + Framework (2026)
4.9 (620 Reviews)
Provider: Udemy
Time: 35.5h
$84.99
Karate DSL: API Automation and Performance from Zero to Hero (2026)
4.8 (4,652 Reviews)
Provider: Udemy
Time: 7.2h
$10.99
API Testing in detail using Postman - Test Automation (2026)
4.8 (423 Reviews)
Provider: Udemy
Time: 7.8h
$10.99
Quick Introduction to Postman and API Testing for Beginners (2025)
4.7 (23,113 Reviews)
Provider: Udemy
Time: 3.2h
$13.99
Software Testing Masterclass (2026) - From Novice to Expert
4.7 (12,622 Reviews)
Provider: Udemy
Time: 9.9h
$149.99
Reviews
By Shining Chen on 1/25/2024
The tests taught here are super practical, testing concepts and architecture are clearly explained, and the instructor follow so many good practices, including updating the README.md as the app and tests are built
By Daniel Tkach on 5/5/2023
I'm impressed by the teaching quality! I've been doing all the exercises, which are very well planned, not too hard, not to easy, quite challenging and interesting, I feel I'm finally learning this stuff.
By Arka on 5/4/2023
Well taught and well structured course. Still, I was very disappointed looking in to code this course is built upon. React 17.x and Nextjs 12.x are almost 2+ years older versions. So these should be 18.2 for React and 13.3.x for Nexjs. Same is true for other code libraries used in the course.
By Greg Shah on 12/5/2022
Your course’s are always well structured and thought through with great examples. This one is no different. I appreciate the “code quizzes” and small challenges through out as it keep you focused and allows me to reinforce what I’ve just learned.
By Michael Silverman on 12/1/2022
While I was not completely new to testing this was my first complete course on the subject and I learned a lot. The instructor is clearly experienced in testing and explains both the philosophy and the details of implementation in a thorough and clear manner. I had several questions in the course and Bonnie always responded promptly in the Q&A section. The only reason I give 9/10 instead of 10/10 is because I had problems using Windows to complete the course and had to switch to Ubuntu towards the end to complete the sections on authentication.
By Vandré Leal Cândido on 9/2/2022
Another well-paced and detailed course from Bonnie. I was looking into an overview of testing strategies for Next.js projects, especially API and ISR with Cypress. I highly recommend it for everyone looking into understanding the basics of testing Next.js applications.
By Fernando Gonzalez Rionda on 8/25/2022
It's what I was looking for. It is a course to see the big picture of how to make tests in Next JS. The course doesn't deep into Cypress or Testing Library, that's a task for the student
By Maria Margarita Salas on 7/10/2022
It's very clear so far, easy to follow. On the down side I don't really like that using the 'npx create-next-app@latest --example with-jest with-jest-app' command the project comes with typescript, since I rarely use it I fear it's going to be a bit hard to adapt what I learn here in my personal projects.
By Dom on 6/23/2022
It's been a positive experience so far; I am enjoying the pace, explanations so far have been pretty on point. I have not yet had a chance to applying learning from the course to my projects and that's the only reason for sticking with 4/5. IMO, what differentiates a tutorial from good to great is how easy it is to translate the 'theoretical' content from a tutorial into life projects.
By Niklas Fischer on 6/19/2022
Amazing course, especially enjoyed the e2e testing with Cypress! Would love to see more courses of her that go into detail about API testing (outside of NextJS) since she seems super knowledgeable and I think we just scratched the surface here, since the course is mainly focused on making testing work with NextJS API Handlers in the backend.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 88 / 100










