Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axios instance is not mocked #335

Open
syffs opened this issue Apr 9, 2022 · 0 comments
Open

axios instance is not mocked #335

syffs opened this issue Apr 9, 2022 · 0 comments

Comments

@syffs
Copy link

syffs commented Apr 9, 2022

Versions:

  • NodeJS: 16.13.0
  • axios: 0.26.1
  • axios-mock-adapter: 1.20.0
  • Typescript: 4.6.3
  • system: WSL Ubuntu 18.04

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) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant