Closed janswist closed 3 months ago
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
throw Exception
passthrough
I added just those two lines:
and ALL of my endpoints stopped working. Is that by default?