An adapter allows custom handling of requests make makes testing easier. Fetch doesn't have a time out, so you'd have to set up your own timers with fetch if you wanted to put a custom time out one in. You know what we do? We use m s w mock service workers for mocking for our tests. And that's pretty neat, because it steps in in the middle as a service worker. Ohhturn the dixactly what service workers are for. They only, the only bummer is is that i have to turn off servicide rendering for our e t e tests, because then it still wants to return the data from the server if i want mock. D

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode