Skip to content

armgit / mocha

Public Imported from GitHub
0

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

reverting "adding node_modules dir to use local modules for ui & reporters" (from cleanup).

Christopher Hiller621c2a8466c9
diff --git a/lib/mocha.js b/lib/mocha.js
index eb56c745..4956684a 100644
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -11,12 +11,6 @@
var path = require('path')
, utils = require('./utils');
-/**
- * Add node_modules directory to use local modules for ui and reporters.
- */
-
-module.paths.push(cwd, join(cwd, 'node_modules'));
-
/**
* Expose `Mocha`.
*/
diff --git a/mocha.js b/mocha.js
index ab843050..71fb15fd 100644
--- a/mocha.js
+++ b/mocha.js
@@ -1396,15 +1396,7 @@ require.register("mocha.js", function(module, exports, require){
*/
var path = require('browser/path')
- , utils = require('./utils')
- , join = path.join
- , cwd = process.cwd();
-
-/**
- * Add node_modules directory to use local modules for ui and reporters.
- */
-
-module.paths.push(cwd, join(cwd, 'node_modules'));
+ , utils = require('./utils');
/**
* Expose `Mocha`.