storybook-addon-mock icon indicating copy to clipboard operation
storybook-addon-mock copied to clipboard

allow some requests to pass through?

Open liron-navon opened this issue 3 years ago • 1 comments
trafficstars

I'm using graphql and I need to only mock a few requests while letting the rest hit the server, so for example:

/graphql - with specific body should be mocked /graphql - all the rest should not be mocked

can we add some kind of matcher for the body to allow to only mock some requests and allow others to pass through?

liron-navon avatar Apr 05 '22 18:04 liron-navon

This is a special case and implementing this feature may break the core functionality of the addon. I would suggest mocking all the endpoints ATM. TBH, this is not in the current roadmap. But I would consider it later.

nutboltu avatar Apr 18 '22 01:04 nutboltu