Back to integrations
Add your integration
Categories
  • ⭐️ Popular
  • 🧩 Essentials
  • 🛠 Code
  • ⚡️ Data & state
  • ✅ Test
  • 💅 Style
  • 🎨 Design
  • ⚙️ Appearance
  • 🗄 Organize
How to install addons Create an addon
@enalmada/storybook-addon-mock-urql
mock urql queries in storybook
npm install @enalmada/storybook-addon-mock-urql
Last updated 4 months ago
218
Downloads per week
Readme 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

Join the community
6,604 developers and counting
WhyWhy StorybookComponent-driven UI
DocsGuidesTutorialsChangelogTelemetryStatus
CommunityAddonsGet involvedBlog
ShowcaseExploreProjectsComponent glossary
Open source software
Storybook

Maintained by
Chromatic
Special thanks to Netlify and CircleCI