mocking-network-and-time
Decides what to fake and fakes it correctly: mocking third-party APIs with Playwright route interception or HAR replay, MSW handlers, fake clocks that freeze time, and fixed timezones. Use when a UI, component, or unit test depends on a third-party service or API, when a date-sensitive test breaks overnight, when a suite is slow because it calls real services, or when a mocked test stays green while production is broken.
Pinned to revision c4efc46815a7, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/mocking-network-and-time/SKILL.md
- skills/mocking-network-and-time/resources/clock-and-timezone.md
- skills/mocking-network-and-time/resources/mocking-decision-record.md
- skills/mocking-network-and-time/resources/msw-recipes.md
- skills/mocking-network-and-time/resources/playwright-route-recipes.md
- skills/mocking-network-and-time/resources/when-to-mock.md
Every link opens the file at its source, pinned to the revision this page describes.