From fa2becb4cac2febcb67159ffc509d585bba0f398 Mon Sep 17 00:00:00 2001 From: Nick Ebbitt Date: Thu, 17 Jun 2021 15:35:30 +0100 Subject: [PATCH] Fix watch mode commander.js changed the way it handles options which broke this. See: - https://github.com/tj/commander.js/blob/master/CHANGELOG.md\#changed-2 - https://github.com/tj/commander.js/pull/1409 Co-authored-by: Michael Eves --- bin/helm-test | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/helm-test b/bin/helm-test index 442e4f3..d8f3cee 100755 --- a/bin/helm-test +++ b/bin/helm-test @@ -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); }