-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Tests fail to pass even though it works as expected #8
Comments
Just wanted to echo this error. I am experiencing it as well: |
Had the same issue. |
I had the same problem! |
Still having this error with students who are trying to pass the first test, even though the post request is working on the DOM.
A suggestion that could fix this issue would be to downgrade your node version. Like so: Or! If you're still working on this lab, just want to downgrade your current version just for this lab, try this: You could also delete the node modules and the package-lock file and reinstall dependencies. That should fix the issue and get the tests to pass or just make the tests easier to read. |
Issue still persists. Downgrading node to 16.14.2 as referenced above did the trick. Thanks for the advice!
and then you can downgrade with these commands:
then after you complete the lab you can change back to your current version:
|
Hey all! Thanks for all the help with this issue. It should now be fixed and should work with either Node 16 or Node 18 🙏 |
Canvas Link
https://my.learn.co/courses/590/assignments/27782?module_item_id=68707
Concern
I've solved the assignment, but for some reason I still get an error. I don't think the error is related to the code I've written but more the test or something in
node-fetch
package has change maybe?Here is the error:
This is after writing my code and running
npm install
thennpm test
.Here is my code:
Additional Context
node version: v19.0.0
Suggested Changes
No response
The text was updated successfully, but these errors were encountered: