Control Response Timing in MSW

Share this video with your friends

Send Tweet

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.