Skip to content
JS

JavaScript Testing Practices and Principles

Course on Master.dev by Kent C. Dodds

View on Master.dev (opens in a new tab)
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
  1. 01

    Intro to Testing

    1. Introduction
    2. Automated Testing
    3. Your First Test Exercise
    4. Your First Test Solution
    5. Coding an Assertion Library
    6. Coding a Testing Framework
  2. 02

    Unit Tests

    1. Jest Testing Framework
    2. Course Code Walkthrough
    3. Unit Test Demo
    4. Writing a Basic Unit Test Exercise
    5. Writing a Basic Unit Test Solution
    6. Test Factories & Colocating Tests Q&A
    7. Code Coverage
  3. 03

    Mocks

    1. Monkey Patch a Mock Exercise
    2. Monkey Path a Mock Solution
    3. Asserting Calling a Mock Exercise
    4. Asserting Calling a Mock Solution
    5. Using Jest spyOn
    6. Using Jest Mock
    7. Jest Q&A
    8. Using a __mocks__ directory
    9. More Mocking with Users
  4. 04

    Testing Practices

    1. Unit Tests for Express Middleware
    2. Unit Tests for Express Middleware Solution
    3. Test Object Factories
    4. Test-Driven Development
    5. Test-Driven Development Solution
  5. 05

    Integration Tests

    1. Basic Integration Test for a Node Server
  6. 06

    Wrapping Up

    1. Additional Resources and Q&A

Similar JavaScript testing courses

  1. Software Developer Success: Soft Skills & Testing

    Master.dev · Francesca Sadikin · 26 lessons · Sept 2024

    3 h 34 minSubscription
    Master.dev26Sept 2024
  2. Front-end Testing 101: Integration and End-to-end Testing

    Educative · Stefano Magni · 74 lessons · Apr 2026

    Intermediate3 h 30 minSubscription
    Educative74Apr 2026
  3. Web App Testing & Tools

    Master.dev · Miško Hevery · 25 lessons · Apr 2024

    3 h 55 minSubscription
    Master.dev25Apr 2024
  4. Learn JavaScript Unit Testing

    Codecademy · 4 lessons · Aug 2018

    Intermediate3 h
    Codecademy4Aug 2018
  5. Intermediate3 h
    Codecademy4Aug 2018
  6. Test Automation with Playwright (Python) & Robot Framework

    Coursera · Professionals in the Industry · Apr 2026

    Intermediate3 h
    CourseraApr 2026
  7. Testing Fundamentals

    Master.dev · Steve Kinney · 29 lessons · Oct 2024

    4 h 30 minSubscription
    Master.dev29Oct 2024
  8. Intermediate4 h 44 min
    CourseraJul 2025

A hyphen means the provider's catalogue does not state the value.

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.

    Compare