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

Add examples for mocking Axios function calls #4992

Closed
mljlynch opened this issue Oct 3, 2022 · 2 comments
Closed

Add examples for mocking Axios function calls #4992

mljlynch opened this issue Oct 3, 2022 · 2 comments

Comments

@mljlynch
Copy link

mljlynch commented Oct 3, 2022

Describe the issue

There are no examples in this repo on how to mock Axios which makes it a hard library to integrate

Expected behavior, if applicable

I would expect in the /examples folder to see a few examples of tests axios behavior including error objects

Environment

  • Axios Version: 0.27.0
@ecyrbe
Copy link
Contributor

ecyrbe commented Oct 5, 2022

Just use moxios.

@mljlynch
Copy link
Author

mljlynch commented Oct 5, 2022

Thanks! It would be helpful if it suggested this somewhere in the docs

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

3 participants