-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: bump yargs to 17 #5165
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: bump yargs to 17 #5165
Conversation
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.
Tests seems to claim that this is failing
Will be easier to figure out why once #5177 is fixed, as then we will no longer fail-fast in the matrix
| .wrap(process.stdout.columns ? Math.min(process.stdout.columns, 80) : 80) | ||
| .epilog( | ||
| `Mocha Resources | ||
| `${ansi.reset("Mocha Resources")} |
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 epilog(ue) wasn't being printed before. Now it is. On error, everything is red, so this ansi.reset is needed to make the colors actually show through.
| }, | ||
| 'list-reporters': { | ||
| conflicts: Array.from(ONE_AND_DONE_ARGS), | ||
| conflicts: Array.from(ONE_AND_DONE_ARGS).filter(arg => arg !== "list-reporters"), |
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.
Without these:
2 failing
1) --list-interfaces
should dump a list of all interfaces with descriptions:
Uncaught UnexpectedError:
expected 1 to be 0
at /home/runner/work/mocha/mocha/test/integration/options/listInterfaces.spec.js:26:7
at ChildProcess.<anonymous> (test/integration/helpers.js:352:5)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
set UNEXPECTED_FULL_TRACE=true to see the full stack trace
2) --list-reporters
should dump a list of all reporters with descriptions:
Uncaught UnexpectedError:
expected 1 to be 0
at /home/runner/work/mocha/mocha/test/integration/options/listReporters.spec.js:29:7
at ChildProcess.<anonymous> (test/integration/helpers.js:352:5)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
set UNEXPECTED_FULL_TRACE=true to see the full stack trace
Changed since review; re-requested
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.
Tested and LGTM
|
v11.1.0 is marked as "next" in npm, v11.0.1 is still "latest". Is that on purpose? |
|
Ah, it's not - thanks @gausie! I just updated the tag on npm. |
PR Checklist
status: accepting prsOverview
Bumps
yargsand related packages to their latest versions:yargs: from16.2.0to17.7.2yargs-parser: from20.2.9to21.1.1Both still support Node >= 12.