Gathering detailed insights and metrics for storybook-addon-mock
Gathering detailed insights and metrics for storybook-addon-mock
Gathering detailed insights and metrics for storybook-addon-mock
Gathering detailed insights and metrics for storybook-addon-mock
This addon allows you to mock fetch or XMLHttpRequest in the storybook.
npm install storybook-addon-mock
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
112 Stars
325 Commits
47 Forks
4 Watching
3 Branches
20 Contributors
Updated on 22 Aug 2024
JavaScript (87.73%)
MDX (12.27%)
Cumulative downloads
Total Downloads
Last day
4.6%
35,071
Compared to previous day
Last week
5.3%
166,702
Compared to previous week
Last month
-1.7%
694,247
Compared to previous month
Last year
31.8%
8,291,002
Compared to previous year
13
This addon allows you to mock fetch or XMLHttprequest requests in storybook. If your component depends on backend requests, and your backend requests are not ready yet to feed your component, this addon provides mock response to build your component.
There are few packages those help the developers to mock the backend requests while building components. But those packages aren't integrated properly in storybook and also there's no scope to play with those requests in the storybook. Mostly, there's no playground to modify the response and see the changes in the storybook.
storybook-addon-mock
provides the following features.
Older(2.*) version documentation
This project is licensed under the MIT License - see the LICENSE file in the source code for details.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/10 approved changesets -- score normalized to 3
Reason
SAST tool is not run on all commits -- score normalized to 1
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morestorybook-addon-mock-date
Storybook addon to mocking date
storybook-addon-module-mock
Provides module mocking functionality like `jest.mock` on Storybook@8.
storybook-addon-fetch-mock
Adds fetch() mocking to Storybook.js using fetch-mock
@storybook/addon-controls
Interact with component inputs dynamically in the Storybook UI