☕️ Classic, reliable, trusted test framework for Node.js and the browser
"Merge pull request #1277 from nishigori/support-ops-path-specify\n\nSuport ops path specify (mocha.opts)"
Travis Jeffery65ee6446becd
diff --cc bin/_mochaindex e08e1092,e0661c5b..7e5e9d5d--- a/bin/_mocha+++ b/bin/_mocha@@@ -169,10 -170,14 +170,14 @@@ program.on('require', function(mod)requires.push(mod);});- // mocha.opts support+ // --opts+-var opsPath = process.argv.indexOf('--opts') !== -1++var optsPath = process.argv.indexOf('--opts') !== -1+ ? process.argv[process.argv.indexOf('--opts') + 1]+ : 'test/mocha.opts';try {- var opts = fs.readFileSync('test/mocha.opts', 'utf8')- var opts = fs.readFileSync(opsPath, 'utf8')++ var opts = fs.readFileSync(optsPath, 'utf8').trim().split(/\s+/);