From Dev.to
Mocking an API you don't own: patching fetch/XHR in the page, then exporting the mock to Playwright and MSW
The API that ruins my test runs is never mine. It is the payment provider that returns 402 on a card that expired in 2019, the map SDK that rate-limits the third request, the auth service that hands o...
