Preserve the original request URL in "onUnhandledRequest" warnings #2125
Labels
bug
Something isn't working
good first issue
Good for newcomers
scope:browser
Related to MSW running in a browser
scope:node
Related to MSW running in Node
Prerequisites
Environment check
msw
versionNode.js version
v20.11.0
Reproduction repository
Always specify repros. Don't follow my lead.
Reproduction steps
onUnhandledRequest
callback:/fo/bar/?t=123
Current behavior
MSW prints a clean URL, making it hard to understand why my custom
onUnhandledRequest
logic is not matching this request:Expected behavior
MSW preserves the unhandled request URL as-is, which includes keeping its query parameters and fragments.
The text was updated successfully, but these errors were encountered: