msw-storybook-addon
Mock API requests in Storybook with Mock Service Worker. (by mswjs)
examples
Examples of Mock Service Worker usage with various frameworks and libraries. (by mswjs)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
msw-storybook-addon | examples | |
---|---|---|
2 | 2 | |
380 | 636 | |
2.9% | 0.8% | |
4.9 | 6.4 | |
14 days ago | 21 days ago | |
TypeScript | JavaScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
msw-storybook-addon
Posts with mentions or reviews of msw-storybook-addon.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Storybook - mocking API calls
As mentioned, we'll be using the MSW addon, which stands for: "Mock Service Worker", it adds a service worker that will intercept and mock our requests.
-
How to structure React components so I can test them with Storybook?
If data is fetched through the API, https://github.com/itaditya/msw-storybook-addon
examples
Posts with mentions or reviews of examples.
We have used some of these posts to build our list of alternatives
and similar projects.
-
How we use Apollo to manage GraphQL data in our React Typescript application
Did you evaluate mock-service-worker? It's a good solution to mocking API requests. When it executes in the browser it uses a service worker to intercept requests, and when it executes in node (e.g. unit tests) it patches the http.Request methods to effectively do the same. Here's an example for mocking Apollo: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo
-
Beginners Thread Easy Questions February 2021
I use https://mswjs.io/, here is also an example project that can become handy: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo . Reading this article could also help: https://kentcdodds.com/blog/stop-mocking-fetch
What are some alternatives?
When comparing msw-storybook-addon and examples you can also consider the following projects:
P2PoW - A P2P Delegated Proof of Work solution for Nano cryptocurrency
open-api-mocker - A mock server based in OpenAPI Specification