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
- storybook-addon-apollo-client - what I was using before urql
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
- Using latest module and target settings for current LTS
- using tsc for types until bun support comes around
Contribute
Using changesets so please remember to run "changeset" with any PR