Skip to content

armgit / mocha

Public Imported from GitHub
0

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

clean up

TJ Holowaychuk0e1f0cdec1f0
diff --git a/bin/mocha b/bin/mocha
index 1db4b433..cedd583d 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -82,7 +82,8 @@ program.on('interfaces', function(){
});
// -r, --require
-module.paths.push(path.join(process.cwd(), 'node_modules'));
+
+module.paths.push(join(cwd, 'node_modules'));
program.on('require', function(mod){
require(mod);
});