How to count mock servers when it gets hits #266
-
Hello, I want to count how many hits received by my mock server during my tests. Is there a way to get this information? Also I want to modify it during tests? My use case, I have a mocked endpoint and my application has retry functionality to get success response, I just wanted to make sure that my mock called retry times. Also after getting retry count I want to make it zero without restarting my mock server. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
expects.callCount
property in interaction would help to assert on the call count of it. I don't think there is a way to modify the call counts. But we can remove the interaction and add it again.