☕️ Classic, reliable, trusted test framework for Node.js and the browser
allow local modules to work as ui and reporters
Giovanni Bassi5566faf9e7e8
diff --git a/lib/mocha.js b/lib/mocha.jsindex 69e273f9..ee565279 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -9,7 +9,9 @@*/var path = require('path')- , utils = require('./utils');+ , utils = require('./utils')+ , join = path.join+ , cwd = process.cwd();/*** Expose `Mocha`.@@ -62,6 +64,7 @@ function image(name) {*/function Mocha(options) {+ module.paths.push(cwd, join(cwd, 'node_modules'));options = options || {};this.files = [];this.options = options;