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
This would allow me to override the handler just to get the request so I can make assertions on it, but then let msw continue to look for another existing handler that will handle this request.
The text was updated successfully, but these errors were encountered:
// Stop the lookup if this handler returns a mocked response.
// If it doesn't, it will still be considered the last matching
// handler until any of them returns a response. This way we can
// distinguish between fallthrough handlers without responses
// and the lack of a matching handler.
if(result?.response){
break
}
Did you experience an issue with this behavior? I'm rather confident it's stable in 1.x but I might have introduced a regression in the 2.x rewrite. If that's the case, please let me know. Thanks.
Scope
Adds a new behavior
Compatibility
Feature description
I would like to be able to do this:
This would allow me to override the handler just to get the request so I can make assertions on it, but then let msw continue to look for another existing handler that will handle this request.
The text was updated successfully, but these errors were encountered: