Testing a Next.js App with React Testing Library & Jest
Offered By: Dave Gray via YouTube
Course Description
Overview
Learn how to test a Next.js application using React Testing Library and Jest in this comprehensive tutorial video. Explore the differences between unit testing and integration testing, and discover how to implement both in a Next.js environment. Gain hands-on experience writing unit tests for various components, including Nav, Header, TodoItem, TodoList, and AddTodo. Dive into integration testing for the entire application and understand the nuances of testing in Next.js 13. Master essential concepts such as Testing Library query types and proper test folder organization. Follow along with practical examples and gain valuable insights to enhance your web development skills and create more robust 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
Related Courses
DEV201x: Introduction to TypeScriptMicrosoft via edX Developing Dynamic Web Applications Using Angular
Microsoft via edX Introduction to TypeScript 2
Microsoft via edX Multiplatform Mobile App Development with NativeScript
The Hong Kong University of Science and Technology via Coursera Angular Fundamentals
Microsoft via edX