You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing exactly the same issue- I even have it like this
` let axiosMock: MockAdapter;
beforeEach(() => {
axiosMock = new MockAdapter(axios);
});
afterEach(() => {
axiosMock.restore();
});`
and I use replyOnce but which ever test is first in execution order it takes "advantage" and then the next one that's mocking same url but negative case simply ignores it- I even tried having reset and restore within the test itself.
I don't know if there's some caching functionality in this library but new mocks are not working.
It only returns the previous mock value.
Any help?
The text was updated successfully, but these errors were encountered: