☕️ Classic, reliable, trusted test framework for Node.js and the browser
Push current node_modules directory onto module.paths to allow mocha to require modules under CWD (fixes issue #93)
Steve Mason97e2f93165f7
diff --git a/bin/mocha b/bin/mochaindex 4efdc3a9..1db4b433 100755--- a/bin/mocha+++ b/bin/mocha@@ -82,7 +82,7 @@ program.on('interfaces', function(){});// -r, --require-+module.paths.push(path.join(process.cwd(), 'node_modules'));program.on('require', function(mod){require(mod);});