ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requests in the network tab

dimitur2204 opened this issue · 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

commented

+1

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