As in title, here is a repro with axios test. Just clone, then yarn install && yarn build && yarn test.
Using onNoMatch: "throwException" has no effect.
is there a way to somehow mock axios globally (for every instance) ?
There's currently no way to mock all axios instances as it doesn't inherit the interceptors.
You'd need to track the instances yourself and call the mock on all of them 🤔
There are no plans to add such support.
Versions:
system: WSL Ubuntu 18.04
As in title, here is a repro with axios test. Just clone, then
yarn install && yarn build && yarn test
. UsingonNoMatch: "throwException"
has no effect.is there a way to somehow mock axios globally (for every instance) ?