Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Mastering Jest Testing with TypeScript and Node.js
Introduction
Course Intro (2:28)
Course Resources
Useful Info
Discord Server
Info
Course Requirements and Testing Info (1:52)
Unit Testing and Jest Info (3:12)
Getting Started with Jest in Node & Typescript
Course Repo (0:25)
Project Setup : Typescript, Node.js & Jest (10:20)
Jest Fundamentals
Test File Location (8:59)
Jest Syntax (7:55)
SUT and AAA (1:47)
Utils Tests (17:18)
Class Tests (8:44)
Jest Hooks (4:41)
Test Doubles Explained : Mocks, Stubs, Spies & More
Dummy Test Doubles (11:18)
Getting Started with Stubs and Fakes (9:52)
Stubs and Fakes in Action (14:55)
Refactor Challenge (6:04)
Using Spies in Jest with jest.spyOn() (15:22)
Clearing and Resetting Mocks in Jest (6:25)
UserService Testing Setup : Spying with Jest Begins (7:04)
Jest SpyOn in Action - Successful UserService Response (10:30)
Simulating Errors with jest.spyOn() in Jest Tests (11:07)
Mocking Modules with jest.mock() (13:21)
Mock External Third Party Modules and Node's Built-in Modules (5:20)
How to Test for Thrown Errors in Jest
Jest Error Handling : First Steps (10:31)
Exploring Error Testing Strategies (8:26)
Jest : Testing Custom Thrown Errors (13:31)
Catching Errors and Silencing Logs with Jest (8:49)
Teach online with
Jest Error Handling : First Steps
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock