axios-mock-adapter icon indicating copy to clipboard operation
axios-mock-adapter copied to clipboard

Requests in the network tab

Open dimitur2204 opened this issue 3 years ago • 2 comments

Is it possible for axios-mock-adapter to work as it is mocking requests right now, but mimick them as real ones that come in and get shown in the Network tab. Like this lib does (mock-service-worker)[https://mswjs.io/]. The only option I found was to use passThrough(), but that just passes the request on to the network without mocking anything

dimitur2204 avatar Jun 21 '22 12:06 dimitur2204

+1

mrth2 avatar Dec 13 '22 09:12 mrth2

+1

This is probably not happening since it would be quite hard to implement I imagine since it requires a service worker. Don't rely on it if you need it. This https://mswjs.io/ is amazing though.

dimitur2204 avatar Dec 13 '22 10:12 dimitur2204