Skip to content

Commit

Permalink
CLI: Upgrade commander to 7.1.0
Browse files Browse the repository at this point in the history
Closes #1564.
  • Loading branch information
Krinkle authored Mar 14, 2021
1 parent 4b3f18d commit 13f9f9c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
19 changes: 10 additions & 9 deletions bin/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@ program
.option( "-w, --watch", "watch files for changes and re-run the test suite" )
.parse( process.argv );

if ( program.reporter === true ) {
const opts = program.opts();

if ( opts.reporter === true ) {
displayAvailableReporters();
}

const args = program.args;
const options = {
filter: program.filter,
reporter: findReporter( program.reporter ),
requires: program.require,
seed: program.seed
filter: opts.filter,
reporter: findReporter( opts.reporter ),
requires: opts.require,
seed: opts.seed
};

if ( program.watch ) {
run.watch( args, options );
if ( opts.watch ) {
run.watch( program.args, options );
} else {
run( args, options );
run( program.args, options );
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"node": ">=10"
},
"dependencies": {
"commander": "6.2.1",
"commander": "7.1.0",
"js-reporters": "1.2.3",
"node-watch": "0.7.1",
"tiny-glob": "0.2.8"
Expand Down

0 comments on commit 13f9f9c

Please sign in to comment.