Skip to main content
Module 5 of 8

Network interception and mocking

Why: Some states are hard to reach with a real backend: a slow response, a 500, an empty list. Intercepting the network lets you test them on demand.

Lessons

  1. page.route: stub the backend (20 min) - intermediate
  2. Errors, timeouts and empty states (20 min) - intermediate
  3. Record and replay with HAR (15 min) - intermediate
  4. Quiz: Network interception and mocking (10 min) - intermediate