☕️ Classic, reliable, trusted test framework for Node.js and the browser
use JSON parsing and file reads to acquire version from package.json
Jason Barryc69e4d273f4e
diff --git a/bin/_mocha b/bin/_mochaindex 46d0188e..707b260c 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -56,7 +56,7 @@ var images = {// optionsprogram- .version(require('../package').version)+ .version(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version).usage('[debug] [options] [files]').option('-r, --require <name>', 'require the given module').option('-R, --reporter <name>', 'specify the reporter to use', 'dot')