From 067c822d6b99c6e0936fa8ca5a9a15eba9996fdc Mon Sep 17 00:00:00 2001 From: Wyatt Preul Date: Sun, 21 Aug 2016 17:28:41 -0500 Subject: [PATCH] Disable debug mode by default (#630) --- lib/cli.js | 2 +- test/cli.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 51fc225b..b5f8155a 100755 --- a/lib/cli.js +++ b/lib/cli.js @@ -346,7 +346,7 @@ internals.options = function () { verbose: false, paths: ['test'], coverage: false, - debug: true, + debug: false, dry: false, environment: 'test', flat: false, diff --git a/test/cli.js b/test/cli.js index 7d5a3f24..fde1ea4d 100755 --- a/test/cli.js +++ b/test/cli.js @@ -203,6 +203,21 @@ describe('CLI', () => { }); }); + it('debug mode is disabled by default', (done) => { + + RunCli(['test/cli_error/failure.js'], (error, result) => { + + if (error) { + done(error); + } + + expect(result.errorOutput).to.equal(''); + expect(result.code).to.equal(1); + expect(result.combinedOutput).to.not.contain('Test script errors:'); + done(); + }); + }); + it('shows the help (-h)', (done) => { RunCli(['-h'], (error, result) => {