msw-storybook-addon icon indicating copy to clipboard operation
msw-storybook-addon copied to clipboard

Mock API requests in Storybook with Mock Service Worker.

Results 37 msw-storybook-addon issues
Sort by recently updated
recently updated
newest added

While building the Storybook, the bundler (Vite) emits an error like this: ``` [commonjs--resolver] No known conditions for "./native" specifier in "msw" package ``` This is because of [the code...

We are experiencing an issue where the story is executed/rendered before MSW is ready. We can see in the console that some requests run before the "MSW is ready" console...

The types were previously imported fine, but with the beta something has broken. Now I get: `.storybook/preview.ts(10,42): error TS2307: Cannot find module 'msw-storybook-addon' or its corresponding type declarations.` Happy to...

Hey guys, I noticed https://github.com/mswjs/msw/discussions/1464 (https://github.com/mswjs/msw/pull/1436) is hopefully getting released this month 🤞, and I'm wondering if there is any work in progress to get `msw-storybook-addon` working with it? Thanks

feature request

I'm pretty new to Storybook, and hope you can help me out here. I have `msw-storybook-addon` installed version `1.10.0`, working fine running locally on my machine. When I try to...

question

I found it hard to use the addon, I even thought of opening a bug and then when I created a sandbox I found my issue. thought of posting the...

Hi dear reader I was looking at this lib and could not find any clue on how you should mock your WebSocket when you are using a library like Redux...

I'm pretty new to Storybook and `msw`. I tried setting up this library in a story, and some things seem to work. I then try to read the documentation [here](https://mswjs.io/docs/concepts/request-handler)...

I tried to mock api call using msw-storybook-addon. When I tried to configure this package in `preview.js`, I got this error(image below). ![Screenshot 2023-12-12 at 6 47 01 PM](https://github.com/mswjs/msw-storybook-addon/assets/48094649/ebb9b49e-0727-4641-81cb-eb6a0cea27b5) ```js...