Open Issues Need Help
View All on GitHubAI Summary: This GitHub issue reports a bug in MSW where unhandled errors thrown within a WebSocket `connection` event listener are not propagated to the client-side `WebSocket.onerror` event. This prevents users from effectively testing error handling scenarios for WebSocket connections mocked by MSW. A reproduction repository and code snippet are provided to demonstrate the issue.
Industry standard API mocking for JavaScript.
Industry standard API mocking for JavaScript.
Industry standard API mocking for JavaScript.
Industry standard API mocking for JavaScript.
AI Summary: This GitHub issue reports an intermittent bug where requests made immediately after calling `stop` on the Mock Service Worker (MSW) service worker do not always pass through properly. Users observe that a second image sometimes fails to load (either pending or improperly served) in Chromium-based browsers and Safari, particularly after multiple page reloads, suggesting a race condition during service worker unregistration.
Industry standard API mocking for JavaScript.
AI Summary: This task involves enhancing the Mock Service Worker (MSW) library by publicly exposing selected internal utilities and TypeScript types. This will improve the library's extensibility, allowing advanced users to create custom handlers and integrations more easily and safely, without relying on potentially unstable internal imports. The task includes identifying suitable internal functions and types for exposure, deciding on the optimal export structure, updating documentation, and creating a pull request.
Industry standard API mocking for JavaScript.