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
However the params don't seem to matter, I can leave them out, change them, the mock always returns the same data. If I change the body (managerId) then the mock does not return the data, which is what I expect.
How can I mock axios, so that the mocked data is only returned if URL matches, the query params match, and the data match?
Thanks
The text was updated successfully, but these errors were encountered:
Firstly: Thanks for the great tool!
Now for my issue:
How can I mock a post request which checks both data and query params?
The production code looks like this:
The tests I have
However the params don't seem to matter, I can leave them out, change them, the mock always returns the same data. If I change the body (managerId) then the mock does not return the data, which is what I expect.
How can I mock axios, so that the mocked data is only returned if URL matches, the query params match, and the data match?
Thanks
The text was updated successfully, but these errors were encountered: