Skip to content
JS

Testing Fundamentals

Course on Master.dev by Steve Kinney

View on Master.dev (opens in a new tab)
4 h 30 min
LengthVideo runtime
Subscription
Price modelMaster.dev plan
29
Lessons
Oct 2024
Published29 Oct 2024

About this course

Description from Master.dev

Ship code with confidence! Learn the basics of testing and apply Test-Driven Development techniques to your workflow. Create automated tests for DOM elements and user interactions. Use mocks and spies to control your environment and test more complex code. Gain practical experience writing unit and integration tests while exploring common testing tools.

What it covers

29 lessons
  1. 01

    Introduction

    1. Introduction
    2. Course Overview
  2. 02

    Testing Basics

    1. Anatomy of a Test
    2. Writing Your First Test
    3. Simple Tests Exercise
    4. Testing Guidelines
    5. Testing for Invalid Input
    6. Testing for Edge Cases Exercise
  3. 03

    Testing Equality

    1. Referential Equality
    2. Testing Randomness
    3. Asymmetric Matchers Exercise
    4. Before/After Hooks & Async Code
  4. 04

    Testing the DOM

    1. DOM Testing Tools
    2. Testing Buttons
    3. Using Testing Library Utilities
    4. Exploring the Accident Counter Project
    5. Accident Counter Exercise
    6. Accident Counter Solution
    7. Searching DOM
  5. 05

    Stubs, Spies, and Mocks

    1. Test Doubles
    2. Spies
    3. Mocks
    4. Alert Spy Exercise
    5. Mocking Dependencies
    6. Mocking Time
  6. 06

    End-To-End Testing

    1. Playwright
    2. Testing the Counter with Playwright
    3. Mock Service Worker
  7. 07

    Wrapping Up

    1. Wrapping Up

Similar JavaScript testing courses

  1. Playwright: Automated Testing & AI Workflows

    Master.dev · Steve Kinney · 23 lessons · Jun 2026

    4 h 34 minSubscription
    Master.dev23Jun 2026
  2. Testing Web Apps with Cypress

    Master.dev · Steve Kinney · 35 lessons · Mar 2022

    4 h 41 minSubscription
    Master.dev35Mar 2022
  3. Intermediate4 h 44 min
    CourseraJul 2025
  4. Unit Testing JavaScript (with CoffeeScript)

    Master.dev · Justin Searls, David Mosher · 34 lessons · Oct 2015

    4 h 46 minSubscription
    Master.dev34Oct 2015
  5. Intermediate4 h 48 min
    CourseraJul 2025
  6. Web Scraping with Puppeteer

    Educative · Sidath Munasinghe · 43 lessons · Jan 2025

    Beginner5 hSubscription
    Educative43Jan 2025
  7. Front-end Testing 101: Integration and End-to-end Testing

    Educative · Stefano Magni · 74 lessons · Apr 2026

    Intermediate3 h 30 minSubscription
    Educative74Apr 2026
  8. Learn JavaScript Unit Testing

    Codecademy · 4 lessons · Aug 2018

    Intermediate3 h
    Codecademy4Aug 2018

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