Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Enable --log-timer-events option

Robert Rossmann2a32ab2c1669
diff --git a/bin/_mocha b/bin/_mocha
index f8068835..f7a39f2c 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -90,6 +90,7 @@ program
.option('--no-timeouts', 'disables timeouts, given implicitly with --debug')
.option('--opts <path>', 'specify opts path', 'test/mocha.opts')
.option('--prof', 'log statistical profiling information')
+ .option('--log-timer-events', 'Time events including external callbacks')
.option('--recursive', 'include sub directories')
.option('--reporters', 'display available reporters')
.option('--throw-deprecation', 'throw an exception anytime a deprecated function is used')
diff --git a/bin/mocha b/bin/mocha
index 031ef56b..47f790e3 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -32,6 +32,7 @@ process.argv.slice(2).forEach(function(arg){
case '--es_staging':
case '--no-deprecation':
case '--prof':
+ case '--log-timer-events':
case '--throw-deprecation':
case '--trace-deprecation':
case '--allow-natives-syntax':