From 92561c833cfb9bb4122a22044103c8e3713f3c6d Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Thu, 9 Mar 2017 16:30:18 +0100 Subject: [PATCH] Add `--no-warnings` flag --- bin/_mocha | 1 + bin/mocha | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/_mocha b/bin/_mocha index 7ba433ef05..bfd526e774 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -96,6 +96,7 @@ program .option('--no-deprecation', 'silence deprecation warnings') .option('--no-exit', 'require a clean shutdown of the event loop: mocha will not call process.exit') .option('--no-timeouts', 'disables timeouts, given implicitly with --debug') + .option('--no-warnings', 'silence all node process warnings') .option('--opts ', 'specify opts path', 'test/mocha.opts') .option('--perf-basic-prof', 'enable perf linux profiler (basic support)') .option('--prof', 'log statistical profiling information') diff --git a/bin/mocha b/bin/mocha index 0097153d15..814d468ac7 100755 --- a/bin/mocha +++ b/bin/mocha @@ -39,6 +39,7 @@ process.argv.slice(2).forEach(function (arg) { case '--gc-global': case '--es_staging': case '--no-deprecation': + case '--no-warnings': case '--prof': case '--log-timer-events': case '--throw-deprecation':