https://github.com/stordco/msw-toolbar
A simple utility to make your MSW experience a little bit better.
https://github.com/stordco/msw-toolbar
dx hacktoberfest msw testing toolbar typescript
Last synced: 5 months ago
JSON representation
A simple utility to make your MSW experience a little bit better.
- Host: GitHub
- URL: https://github.com/stordco/msw-toolbar
- Owner: stordco
- License: mit
- Created: 2021-09-22T05:15:06.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T18:35:18.000Z (about 2 years ago)
- Last Synced: 2025-10-20T06:58:37.121Z (8 months ago)
- Topics: dx, hacktoberfest, msw, testing, toolbar, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@stordco/msw-toolbar
- Size: 458 KB
- Stars: 6
- Watchers: 35
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MSW Toolbar
A simple utility to make your MSW experience a little bit better.
### Requirements
- [msw](https://github.com/mswjs/msw)
### Usage
There are two primary ways to use this component:
1. As a wrapper around your entire app
1. When you structure things like the below, you guarantee that _all requests_ will be intercepted because `children` will not be rendered until the worker has successfully started.
```jsx
```
2. As a regular component in the tree
1. When you do this, all requests _should be intercepted_, but it's not guaranteed because there can be timing issues with the service worker registration.
```jsx
```