storybook-addon-mock
storybook-addon-mock copied to clipboard
feat: allow string responses
I've added the support for returning a string value in a response instead of only allowing JSON. Adding the change to the Storybook docs in packages/mock-addon-docs
requires some bigger changes in the test files, so I haven't done that yet because I wanted to wait for your feedback on whether you want to accept the PR and if so, how it should be added to the docs.
Closes #200 .
Deploy Preview for storybook-addon-mock ready!
Name | Link |
---|---|
Latest commit | e8307abbaed536f3093f287d19ff5b576da3ffaa |
Latest deploy log | https://app.netlify.com/sites/storybook-addon-mock/deploys/655f82af6bf56c0008a707f0 |
Deploy Preview | https://deploy-preview-201--storybook-addon-mock.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
I would love this feature. It is quite a severe limitation to only be able to return objects and arrays. Hope the PR gets merged