Repository navigation
MSW intregration with Vite DevTools #2814
PierreBerger
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
I'd like to explore an MSW integration with Vite DevTools that helps developers control their mocks and understand how they affect their application.
Motivation
A panel could make it easier to check loading, success, and error states without editing handlers each time.
It would also help to see which mocks are active and whether a request was mocked, passed through, or left unhandled.
Potential capabilities
Mock controls
Inspection
The panel could also show whether MSW is active, the registered handlers, how each request was handled, and any active overrides.
Further considerations
There are probably useful features missing from this list. It mostly focuses on HTTP request/response flows for now. GraphQL, SSE, and WebSockets would also need some thought.
The visual side is still open too: how should mocks, requests, and controls be organized in the panel? The Vite, Vitest, and Rolldown DevTools could provide some inspiration.
All reactions