-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: v20 #305
Conversation
BREAKING CHANGE: Drop support for NodeJS v14, v16
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.
Thanks!
Leftovers from transition from mocha to jest
// To-Do: Figure out why the objects are not strictly equal | ||
expect(JSON.stringify(error.response.data.errors)).toStrictEqual( | ||
JSON.stringify([ | ||
{ | ||
resource: "Label", | ||
code: "invalid", | ||
field: "color", | ||
}, | ||
]), | ||
); |
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.
This is the same situation as in octokit/core.js#563
This will need to be handled in a follow-up issue
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.
FAIL test/scenarios/errors.test.ts
● api.github.com › (#684) errors-test
expect(received).toStrictEqual(expected) // deep equality
Expected: [{"code": "invalid", "field": "color", "resource": "Label"}]
Received: serializes to the same string
25 | `Validation Failed: {"resource":"Label","code":"invalid","field":"color"}`,
26 | );
> 27 | expect(error.response.data.errors).toStrictEqual([
| ^
28 | {
29 | resource: "Label",
30 | code: "invalid",
at test/scenarios/errors.test.ts:27:44
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.
Addressed in octokit/core.js#588
🎉 This PR is included in version 20.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: Drop support for NodeJS v14, v16