ctimmerm/axios-mock-adapter

Why all my requests are blocked?

janswist opened this issue · 1 comments

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?

Yeah, if no match, it will throw Exception, if you don't want that, can change to passthrough