☕️ Classic, reliable, trusted test framework for Node.js and the browser
add support to pass through flags such as --debug-brk=1234. Closes #852
TJ Holowaychuka4e19d338729
diff --git a/bin/mocha b/bin/mochaindex d83b9259..428c54ad 100755--- a/bin/mocha+++ b/bin/mocha@@ -8,8 +8,10 @@var spawn = require('child_process').spawn, args = [ __dirname + '/_mocha' ];-process.argv.slice(2).forEach(function (arg) {- switch (arg) {+process.argv.slice(2).forEach(function(arg){+ var flag = arg.split('=')[0];++ switch (flag) {case '-d':args.unshift('--debug');break;