-
Notifications
You must be signed in to change notification settings - Fork 42
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
Calling reset does not reset the axios mock function #19
Comments
I’m experiencing something similar, but this might be related to #17. I’m trying to test The opposite is true: if I call I’m calling Edit: the axios call I’m testing uses both |
I'm having the same issue with |
For me (4.5.0), adding beforeEach(() => {
jest.clearAllMocks()
}) on top of afterEach(() => {
mockAxios.reset()
}) works for me. Not ideal as the example snippet provided which causes confusion, but it's working. |
You can call axios with code like the following:
The text was updated successfully, but these errors were encountered: