Course lesson

Control Response Timing in MSW

The more your request handlers resemble the actual production behavior, the more confident you'll get when prototyping and testing with Mock Service Worker. But here's the thing—mocked responses arrive to the client really quickly. Learn how to control...

Duration
2 min
Access
Included
Transcript
Retained from source evidence

The more your request handlers resemble the actual production behavior, the more confident you'll get when prototyping and testing with Mock Service Worker. But here's the thing—mocked responses arrive to the client really quickly. Learn how to control response timing and server-side latency by using the "delay" function.