mock urql queries in storybook

View on Github

storybook-addon-mock-urql

Helpers to mock urql in a format that is consumed by storybook-addon-mock.

Getting Started

Read the documentation

TODO

  • examples with error response
  • review how overrides at the test level work

inspiration

Alternatives

  • msw-storybook-addon - I couldn't get it to work for me. Wouldn't handle the routes. I tried going direct msw like this but also didn't work.
  • @urql/storybook-addon - directions didn't work for me with latest next.js app directory urql client.

Build Notes

Contribute

Using changesets so please remember to run "changeset" with any PR