-
Notifications
You must be signed in to change notification settings - Fork 759
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
Always pass on errors if no response #446
Conversation
👍 |
Any news when this will be merged? |
+1 Please merge and release |
Would love to see this merged. |
For god sake @mikelax, please merge this...! Thanks! |
How can we get this now, I'm seeing it often |
hey folks, be nice to the open source maintainers, I'm sure they do what they can. In the meanwhile, you can install it directly from github, just set If you want to be helpful, you can publish a package like Don't make assumptions on how easy it is to merge & release, because we don't know. Show some love and patience <3 |
Thanks, @gr2m. Using the version from bkeepers works for me. I can now see where the failures in my code happens. |
@mikelax Is there anything I can do to help this land in the master? |
Thank you everybody for your contributions. |
When an error occurs that prevents an http response from being generated, the exception is currently obscured by an error message like
Cannot read property 'status' of undefined
. This is because supertest is attempting to make assertions about the response, but the response isundefined
.This updates the existing error logic, which handles network and system errors, to always return the error and skip response assertions if there is no response.
Fixes #352
Fixes #314
Fixes #370
cc @gr2m @wilhelmklopp