JavaScript Testing Practices and Principles
Course on Master.dev by Kent C. Dodds
- 3 h 39 min
- LengthVideo runtime
- Subscription
- Price modelMaster.dev plan
- 29
- Lessons
- Aug 2018
- Published23 Aug 2018
About this course
Description from Master.dev
Learn the principles and best practices for writing maintainable test applications to catch errors before your product reaches the end user! Follow along with Kent C. Dodds and learn the fundamentals behind tests and testing frameworks, the distinctions of different forms of testing and when to use them appropriately to ensure your tests give you the confidence you need. You will also learn to write unit and integration tests with the popular Jest testing framework, mock dependencies, and use test-driven development to write new features and help find bugs!
What it covers
29 lessons
- 01
Intro to Testing
- Introduction
- Automated Testing
- Your First Test Exercise
- Your First Test Solution
- Coding an Assertion Library
- Coding a Testing Framework
- 02
Unit Tests
- Jest Testing Framework
- Course Code Walkthrough
- Unit Test Demo
- Writing a Basic Unit Test Exercise
- Writing a Basic Unit Test Solution
- Test Factories & Colocating Tests Q&A
- Code Coverage
- 03
Mocks
- Monkey Patch a Mock Exercise
- Monkey Path a Mock Solution
- Asserting Calling a Mock Exercise
- Asserting Calling a Mock Solution
- Using Jest spyOn
- Using Jest Mock
- Jest Q&A
- Using a __mocks__ directory
- More Mocking with Users
- 04
Testing Practices
- Unit Tests for Express Middleware
- Unit Tests for Express Middleware Solution
- Test Object Factories
- Test-Driven Development
- Test-Driven Development Solution
- 05
Integration Tests
- Basic Integration Test for a Node Server
- 06
Wrapping Up
- Additional Resources and Q&A
Similar JavaScript testing courses
Same topic, nearest in length, up to three from any one provider.
Data read from the Master.dev catalogue on 28 Nov 2026. How the data is collected.