Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Test Like a Tech Lead
M0: Welcome
Welcome (0:53)
What to Expect From This Course
Resources
M1: Writing Your First Unit Tests
What's a Test, Really? (9:13)
Demo: Arrange, Act, Assert, part 1 (15:33)
Demo: Arrange Act Assert, part2 (9:36)
Exercise: Write some tests! (22:42)
Anatomy of a Testing Framework (10:07)
Demo: Getting Up and Running with Jest (17:10)
On Your Own: Refactor into Jest
Module 1 Wrap-up
M2: Writing Testable Code
What to Test (13:21)
Exercise - Diagram a POST Route
Solution: Diagram the POST Route (12:11)
Testing Demo p1: Repo Tour (5:32)
Testing Demo p2: GET Route, 200 Response (12:54)
Testing Demo p3: GET Route, 404 Response (4:12)
Testing Demo p4: POST Route, 200 Response (15:14)
Testing Demo p5: Model Validation, Happy Path (14:20)
Testing Demo p6: Model Validation, Unhappy Path (14:49)
Testing Demo p7: Updating Endpoints to Use the Database (11:41)
Testing Demo p8: POST Route, 400 Response (22:06)
Exercise: Kite Enthusiasts App
Module 2 Wrap-up
M3: An Introduction to Mocking
Diagramming the Weather Cache (24:09)
Demo p1: Using Fixtures to put Guardrails on Your Tests (10:38)
Demo p2: Building the Cache Service (34:10)
Demo p3: Building the Database Service (21:52)
Demo p4: Adding a maxAge Argument (14:55)
Demo p5: Swapping the Real DB Implementation into the Cache Service (18:16)
Demo p6: API Service Prep and Setup (3:44)
Demo p7: API Service - How to Mock a Real API (8:04)
Demo p8: Setting up Mock Service Worker (5:14)
Demo p9: Testing the API Service (9:28)
Demo p10: Substituting the Fake API Service for Real Implementation (34:41)
Demo p11: Implementing the Cache Endpoint (27:41)
Quick Note about Swallowing Errors (1:26)
Demo p12: Starting the Live Server (9:52)
On Your Own - Error Handling Component
Module 3 Wrap-up
M4: So What Makes a Good Test, Anyway?
Unit vs. Integration Testing (17:24)
Finding the Right Abstraction (24:23)
No Seriously, What Do I Test? (16:49)
Exercise 1 - Testable Layered Architecture (3:46)
Exercise 1 - Solution (7:05)
Exercise 2 - Building on the Layers (0:43)
Exercise 2 - Solution (13:52)
On Your Own - More Fun With Your Calculator REPL
Module 4 Wrap-up
M5: Structuring Tests for Reliability
Intro: Why Do We Care? (2:55)
Demo 1: Don't use beforeEach to set up your System Under Test (13:35)
Demo 2: So What Are Before/After Hooks Good For? (3:04)
Exercise 1 - Fixture Factories in the Application Repo
Demo 3: When Tests Collide (13:50)
Demo 4: More Fun With Mocks (8:40)
Exercise 2: Fix these tests!
Demo 5: Parametric Testing (13:54)
Module 5 Wrap-up
M6: Front End Testing and End to End Tests
How to Test Front End Components (11:58)
Demo 1: Repo Tour (8:33)
Demo 2: Testing a Static Component (22:55)
Demo 3: Testing a Form (31:40)
Demo 4: Extracting the useRequest Hook, p1 (38:42)
Demo 5: Extracting the useRequest Hook, p2 (23:03)
Demo 6: Handling Error States (18:55)
Intro to End-to-End Testing (7:07)
Demo 1: Getting Started with E2E Tests (24:11)
Demo 2: A Longer User Journey (30:54)
Module 6 Wrap-up
M7: Putting it All Together
Let's Do It All Again!
Module 7 Wrap-up
Teach online with
Demo 3: Testing a Form
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock