Skip to content

Bypass Webpack dev server url? #871

Answered by kettanaito
adesurirey asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @adesurirey.

We've enabled the "warn" strategy for all unhandled requests a few minor versions back. The reason for that is to improve developer experience (I know this sounds counter-intuitive right now but bear with me) and ease MSW integration into existing projects.

A significant portion of the issues people experience with MSW is caused by improperly written request handlers. URL typos, missing parameters, wrong base URLs are common and, luckily, easily solvable reasons. The main difficulty with such issues is to notice them. That's precisely why you see those warnings, as MSW will warn on any unhandled request by default.

That being said, there may be requests you don't intend …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adesurirey
Comment options

Answer selected by adesurirey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants