ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.42k stars 241 forks source link

Requests in the network tab #341

Open dimitur2204 opened 2 years ago

dimitur2204 commented 2 years ago

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

mrth2 commented 1 year ago

+1

dimitur2204 commented 1 year ago

+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.