-
Notifications
You must be signed in to change notification settings - Fork 761
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
910a111
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.
@rimiti I have a question, why was supertest bumped a major version? Does it have breaking changes? I can't find them in the release changelog/commit history.
910a111
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.
My guess is that it's because they dropped support for older node versions.
(but I also got a new error in my code, not sure why yet...)
910a111
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.
Update: the new error I had is with an on-purpose-invalid accept value which now returns 500 instead of 406 like my code does. My guess is that because of some dependency updates (not sure if that's express' updating of the
accepts
dependency, ornock
) the server checks the syntax of the value before handing it over to my code. This also supports the idea of bumping the major version.On a side note, this makes me slightly worried that I'm not testing my code in the same condition as the real thing 😅. Limitations of testing, I guess...
910a111
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.
Also superagent was bumped from v3 to v6. Given supertest inherits a lot from superagent this is another reason :-)
910a111
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.
Nice! Thanks you!