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
fix: replace debug with node debug #2592
Conversation
Just one remark, which I realized later: debuglog does not exist on browsers. So if we have the necessity to support browsers, it wont work. But I think the support of browsers got lost few major versions ago? |
@Uzlopak I don't think we support Browser (I think because we use |
Well, i dont know why for browsers nock should be used, but i wanted to say, why maybe debug was used in the first place. |
@Uzlopak why not? MSW is very popular in the browser. |
I wouldn't worry about browsers for now. When we get there we can use ESM features to give non-nodejs environments a different implementation of |
b58a713
to
f5eff86
Compare
@Uzlopak What is the problem with the tests? |
added test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great, thank you for adding tests!
Not sure about the ERR_INVALID_ARG_TYPE
CI error, I've seen that in other PRs as well 😞
Rerunning the tests and it run through |
@mikicho if changes look good to you, let's merge |
LGTM |
🎉 This PR is included in version 14.0.0-beta.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I did not fix the unit test as I could not fix it properly. But lets discuss this.