Sha256: 608fd63cdb6d2be1e03e27fd46ad87f763754700e24125019fd3156588c441ba
Contents?: true
Size: 774 Bytes
Versions: 4
Compression:
Stored size: 774 Bytes
Contents
#!/usr/bin/env node /** * This tiny wrapper file checks for known node flags and appends them * when found, before invoking the "real" _mocha(1) executable. */ var spawn = require('child_process').spawn , args = [ __dirname + '/_mocha' ]; process.argv.slice(2).forEach(function (arg) { switch (arg) { case '-d': args.unshift('--debug'); break; case 'debug': case '--debug': case '--debug-brk': args.unshift(arg); break; case '-gc': case '--expose-gc': args.unshift('--expose-gc'); break; default: if (0 == arg.indexOf('--trace')) args.unshift(arg); else args.push(arg); break; } }); var proc = spawn(process.argv[0], args, { customFds: [0,1,2] }); proc.on('exit', process.exit);
Version data entries
4 entries across 4 versions & 1 rubygems