Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixes #1794

James G. Kimd596bbbfa130
diff --git a/bin/_mocha b/bin/_mocha
index f8068835..bfab146e 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -201,10 +201,6 @@ if (program.reporterOptions !== undefined) {
mocha.reporter(program.reporter, reporterOptions);
-// interface
-
-mocha.ui(program.ui);
-
// load reporter
try {
@@ -304,6 +300,10 @@ requires.forEach(function(mod) {
require(mod);
});
+// interface
+
+mocha.ui(program.ui);
+
//args
var args = program.args;