Skip to article content
FrontendXLearning path

Testing and Quality Engineering

Build a working model of automated testing from assertions to unit, component, API, integration, contract and end-to-end tests, then apply it to a single progressive task-board capstone where each milestone adds a real defect, a failing test, a corrected implementation and an expected result.

beginner · 24 lessons · 144 exercises · about 480 minutes

  • Predict
  • Explain
  • Implement
  • Debug
  • Test
  • Interview

What you will be able to do

#
  • Explain what an assertion proves, what a failing test means and what a passing test does not prove.
  • Write isolated, deterministic unit tests for pure functions, including boundary and negative cases.
  • Choose between stubs, spies, mocks and fakes and justify the choice for a given dependency.
  • Test asynchronous code, timers and network calls without real delays or real servers.
  • Test components through accessible queries and real user events rather than implementation details.
  • Distinguish unit, integration, contract, end-to-end and mutation testing and place each on a test strategy.
  • Diagnose flaky tests and describe deterministic fixes instead of retries.
  • Extend the quality-task-board capstone with tests that fail for a concrete defect and pass after a concrete fix.

Prerequisites

#

Lessons

#
  1. Assertions: What a Test Actually Proves

    beginner · 30 minutes · 6 exercises

    Describe a test as setup, action and one or more assertions.

  2. Test Structure, Isolation and Determinism

    beginner · 30 minutes · 6 exercises

    Structure a test with clear setup, action and assertion phases.

  3. Test Doubles: Stubs, Spies, Mocks and Fakes

    beginner · 35 minutes · 6 exercises

    Distinguish stubs, spies, mocks and fakes by purpose.

  4. Unit Testing Pure Functions

    beginner · 30 minutes · 6 exercises

    Identify the unit boundary of a function.

  5. Edge Cases, Boundaries and Table-Driven Tests

    intermediate · 35 minutes · 6 exercises

    Partition inputs into equivalence classes.

  6. Testing Asynchronous Code and Timers

    intermediate · 40 minutes · 6 exercises

    Await asynchronous assertions instead of asserting before they settle.

  7. Component Testing with the DOM

    intermediate · 40 minutes · 6 exercises

    Render a component into a DOM container and query its output.

  8. Accessible Queries and Real User Events

    intermediate · 35 minutes · 6 exercises

    Query elements by their accessible role and name.

  9. Testing Network Calls and API Clients

    intermediate · 40 minutes · 6 exercises

    Replace the network with a controllable double.

  10. Integration Testing Across Modules

    intermediate · 40 minutes · 6 exercises

    Compose real units and double only the outer boundary.

  11. End-to-End Testing in a Real Browser

    advanced · 45 minutes · 6 exercises

    Describe what an end-to-end test proves that lower layers cannot.

  12. Consumer-Driven Contract Testing

    advanced · 45 minutes · 6 exercises

    Explain the problem contract testing solves between services.

  13. Mutation Testing: Measuring Test Strength

    advanced · 45 minutes · 6 exercises

    Explain what a mutation is and what a surviving mutant reveals.

  14. Coverage and Honest Quality Signals

    intermediate · 35 minutes · 6 exercises

    Distinguish statement, branch and path coverage.

  15. Flaky Tests and Deterministic Fixes

    advanced · 40 minutes · 6 exercises

    Recognize the common sources of test flakiness.

  16. Capstone: Testing the Quality Task Board

    advanced · 60 minutes · 6 exercises

    Apply the full testing spectrum to one continuous application.

  17. Test Data, Fixtures and Builders

    intermediate · 35 minutes · 6 exercises

    Create fixtures that are minimal and readable.

  18. Errors, Negative Paths and Failure Injection

    intermediate · 35 minutes · 6 exercises

    Test that errors are thrown with the right type and message.

  19. Snapshot Testing and Its Pitfalls

    intermediate · 30 minutes · 6 exercises

    Explain what a snapshot test captures and when it is useful.

  20. Performance and Load Testing Basics

    advanced · 40 minutes · 6 exercises

    Distinguish a performance assertion from a functional assertion.

  21. Visual Regression Testing

    advanced · 35 minutes · 6 exercises

    Explain what a visual regression test compares.

  22. Security-Oriented Tests

    advanced · 40 minutes · 6 exercises

    Test input validation against hostile input.

  23. Wiring Tests into CI Quality Gates

    intermediate · 35 minutes · 6 exercises

    Describe the stages of a test pipeline and what each blocks.

  24. Choosing a Test Strategy

    advanced · 40 minutes · 6 exercises

    Compare the test pyramid, the trophy and the ice-cream cone.

Capstone project

#

The capstone opens the authored project in the browser-local playground. Milestones labeled native-ci or local-node cannot run in the browser sandbox: they open their files only, and their expected logs are authored expectations, not captured runs.

Loading the capstone project...

Study journeys

#

Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.

© 2026 FrontendX. All rights reserved.