mock urql queries in storybook
npm install @enalmada/storybook-addon-mock-urql
Downloads per week
Readme View on GitHub
Helpers to mock urql in a format that is consumed by storybook-addon-mock.
Read the documentation
- examples with error response
- review how overrides at the test level work
- storybook-addon-apollo-client - what I was using before urql
- 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.
- Using latest module and target settings for current LTS
- using tsc for types until bun support comes around
Using changesets so please remember to run "changeset" with any PR