Overriding requests #2420
Unanswered
BrunoQuaresma
asked this question in
Q&A
Replies: 1 comment
-
I'm in the exact same scenario. I'd like to provide a default mock for the API endpoints. But allow devs to override the replies per test case basis. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I have a setup where we mock the API endpoints with default results but sometimes, in the specific test, we want to mock a different response and I noticed the response is always the one from the first definition, eg.:
When I mock the request for the second time, it does not work as expected. The response still returns the
["a", "b"]
result. Thoughts?Beta Was this translation helpful? Give feedback.
All reactions