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
Hippolyte has worked great for testing a lot of different scenarios in our app, but there's one thing I haven't figured out how to test for, and that's behavior while a network request is in flight. For instance, I have a class that returns in flight tasks if the same file is requested again. Another class needs to handle cancellation while a request is in progress.
For other async operations that I've stubbed I'd do the following:
stub request in a pending state
perform the operation that uses the request
make checks or actions based on a pending request state
resume request stub
Hippolyte has a pause method, but from what I understand that just stops it from responding to requests temporarily.
The text was updated successfully, but these errors were encountered:
Sorry that it's taken so long for me to write. If I understood the issue correctly, what you want to achieve is to "slow down" the response to a request so that you can catch it as in-flight or even fully suspend it, is that correct?
Hippolyte has worked great for testing a lot of different scenarios in our app, but there's one thing I haven't figured out how to test for, and that's behavior while a network request is in flight. For instance, I have a class that returns in flight tasks if the same file is requested again. Another class needs to handle cancellation while a request is in progress.
For other async operations that I've stubbed I'd do the following:
Hippolyte has a pause method, but from what I understand that just stops it from responding to requests temporarily.
The text was updated successfully, but these errors were encountered: