Skip to content
UdemySoftware TestingPaid courseIntermediate levelCertificate

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

icon
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

icon
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:

  1. UI unit tests

  2. API unit tests

  3. Next.js routes

  4. Cached pages

  5. Data updates (both to the cache and via SWR refresh interval)

  6. Authentication

  7. End-to-End tests for a complete user flow

The course uses a cross-section of testing technologies, featuring: 

  1. Jest

  2. React Testing Library

  3. Mock Service Worker

  4. Cypress

  5. Cypress Testing Library

You'll also learn a wide array of testing techniques, such as:

  1. Using a test database

  2. Environment variables

  3. Jest module mocking

  4. 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.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

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(!).

icon
More courses by Bonnie Schulkin

$14.99

$69.99

icon
More Software Testing courses

$59.99

$84.99

$10.99

$10.99

$13.99

$149.99

icon
Reviews

4.4

412 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

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.

Showing all 10 reviews on CourseDuck

Read all 412 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 88 / 100