Why all my requests are blocked?
janswist opened this issue · 1 comments
janswist commented
I added just those two lines:
import MockAdapter from 'axios-mock-adapter'
const mock = new MockAdapter(axios, { onNoMatch: "throwException" })
and ALL of my endpoints stopped working. Is that by default?
suhaotian commented
Yeah, if no match, it will throw Exception
, if you don't want that, can change to passthrough