-
-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmatched requests get logged to the console. #69
Comments
Hello, @kentcdodds. Thanks for reporting this. My bad, I've published the library with some local version of |
No worries. I'll take a look tomorrow. Thanks! |
This is fixed. Thanks! |
For anybody arriving here like me wanting to log requests, you can use this technique:
The lack of |
Hey, @bargar! Thanks for posting this for others. Note that MSW logs out requests that were matched, meaning their responses were mocked. However, you can see those requests and other requests in the "Network" tab of your browser. Sometimes extra logging to the console may not be necessary: just look into the "Network". |
My pleasure.
An excellent point for msw in the browser! I probably should have mentioned that I was coming from the context of debugging a react testing library test run at the command line. The request logging alerted me to an unexpected request that I had neglected to mock with msw. |
The
lib/index.js
file is built via webpack and has aconsole.warn
in it in thematch
function fromnode-match-path
:But no version of
node-match-path
has aconsole.warn
in it. Could we get a rebuild of this and a publish to get rid of that warning? It's kind of distracting 😅Thanks!
The text was updated successfully, but these errors were encountered: