-
Notifications
You must be signed in to change notification settings - Fork 10
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
refactor tests to use fetch
instead of request
#1016
Comments
fetch
instead of request
fetch
instead of request
I gave this one a shot, but getting some failures when running the tests on Steps to reproduce:
The coverage report is created, but the tests fail along with the overall process. Am I missing something?
|
@DevLab2425 2677 passing (3m)
27 pending
Does this change the lockfile at all? I wonder what version of Yarn you are using? Just One thought is for one of the failing test cases, find it's corresponding *.spec.js file and
Be curious to see what errors you are getting. 👀 |
@thescientist13 Killed that process and things are running fine. Not sure how I missed that otherwise. Sorry for the false alarm. |
All good! I'd be lying if I said I hadn't done that myself 😇 |
As part of the #1014, I realized that we although we have been using request to run HTTP calls in our tests, now with native
fetch
, we should use that instead. That, and also, request is deprecated. 😅So for example, in a few specs we do something like this when testing a server based command
Instead, we should now be able to do this
The text was updated successfully, but these errors were encountered: