storybook-addon-mock
storybook-addon-mock copied to clipboard
allow some requests to pass through?
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?
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.