Skip to content

Commit

Permalink
Fix watch mode
Browse files Browse the repository at this point in the history
commander.js changed the way it handles options which broke this.

See:
- https://github.com/tj/commander.js/blob/master/CHANGELOG.md\#changed-2
- tj/commander.js#1409

Co-authored-by: Michael Eves <[email protected]>
  • Loading branch information
nickebbitt and Evesy committed Jun 17, 2021
1 parent 8e6dc19 commit fa2becb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/helm-test
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ program
.option('-w, --watch', 'Watch for file changes and re-run tests')
.parse(process.argv);

app.test({
watch: program.watch
}, err => {
if(err) {
app.test(program.opts(), (err) => {
if (err) {
logger.log(err);
process.exit(1);
}
Expand Down

0 comments on commit fa2becb

Please sign in to comment.