jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

Option for passthrough on certain requests #75

Closed grug closed 5 years ago

grug commented 5 years ago

I couldn't see any other issues asking/discussing this, so I'll give it a go:

Does this library have the ability to only mock certain requests and do a passthrough for all non-matching requests? I guess the use case for this is self-explanatory: I have an application I want to mock certain requests for, but not others.

Thanks!

jameslnewell commented 5 years ago

Yep! That's what the proxy is for. Let me know if that doesn't suffice.

grug commented 5 years ago

Yep that works perfect!