-
-
Notifications
You must be signed in to change notification settings - Fork 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
feat: bump yargs to 17 #5165
base: main
Are you sure you want to change the base?
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
}) | ||
.help('help', 'Show usage information & exit') | ||
.alias('help', 'h') | ||
.version('version', 'Show version number & exit', version) | ||
.alias('version', 'V') | ||
.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.
description: 'List built-in user interfaces & exit' | ||
}, | ||
'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
PR Checklist
status: accepting prs
Overview
Bumps
yargs
and related packages to their latest versions:yargs
: from16.2.0
to17.7.2
yargs-parser
: from20.2.9
to21.1.1
Both still support Node >= 12.