Comments (26)
Hey everyone! I started the changes in #122, and there's a canary release ready for you to try:
npm install [email protected]
# or
yarn add [email protected]
It might take some time to promote it to latest (and therefore release a breaking change), so please use the canary and let me know how it goes!
from msw-storybook-addon.
Hey @szykov π
We're just getting back from holidays. I'll talk to Yann about getting this merged over the next week or so.
Stay tuned π»
from msw-storybook-addon.
Hey everyone! Unfortunately there are still a few things to sort out before the addon releases breaking changes (v2.0.0) to latest.
We just released a beta, so please keep using the beta for the time being and we'll reach out once the final version is out!
yarn add msw-storybook-addon@beta
or
yarn add [email protected]
from msw-storybook-addon.
been using the canarary for a little bit now and haven't noticed any issues so far π
from msw-storybook-addon.
FYI, I tried to upgrade from the canary to the beta and hit #131. Canary works fine.
from msw-storybook-addon.
this has been working well for me too @yannbf - been using it for a few weeks now
from msw-storybook-addon.
@CHE1RON
You can hide that warning by setting onUnhandledRequest: 'bypass'
in InitializeOptions.
import { initialize } from 'msw-storybook-addon'
initialize({
onUnhandledRequest: 'bypass'
})
https://github.com/mswjs/msw-storybook-addon?tab=readme-ov-file#configuring-msw
see also:
https://mswjs.io/docs/api/setup-worker/start#onunhandledrequest
from msw-storybook-addon.
That's EXACTLY what I needed, thank you very much! π₯
from msw-storybook-addon.
Working great so far, thanks @yannbf!
from msw-storybook-addon.
any plans when it goes stable? thanks.
from msw-storybook-addon.
Same here. Canary works, although I receive warnings about requests "without a matching request handler":
from msw-storybook-addon.
Related Issues (20)
- Problems with SB7: 404s on mocked calls and mockServiceWorker.js retrieval HOT 1
- Unable to customize default handlers in Story HOT 1
- Possible issue when used with build-storybook HOT 2
- [README.md] static dir should be indicated using `.storybook/main.js` instead of `-s` option HOT 3
- Storybook keeps reloading when this add-on is enabled HOT 2
- How to overwrite the handlers using the array definition? HOT 1
- Not catching API as expected HOT 2
- Can't get addon to work. Using react-query v4 and nextjs HOT 7
- Always 404 error returns on next.js environment HOT 8
- CanΒ΄t intialize msw on Sveltekit + Typescript HOT 1
- MSW 2.0 Support HOT 1
- Do not know how I can mock my RTK websocket with this lib HOT 3
- Can not able to import msw-storybook-addon HOT 1
- Breaks on building Storybook HOT 18
- Quick question on this library HOT 2
- Running msw-storybook-addon within test-storybook HOT 1
- Rest calls are being cancelled in localhost HOT 1
- A livereload triggered by Webpack leaves the add-on in a bad state HOT 1
- Peer dependencies breaking install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msw-storybook-addon.