Sha256: c8cc9f486dae94d30c3b77fab73b2c710b4023022049e197327ec3003c507b4d
Contents?: true
Size: 711 Bytes
Versions: 5
Compression:
Stored size: 711 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: args.push(arg); break; } }); var proc = spawn(process.argv[0], args, { customFds: [0,1,2] }); proc.on('exit', process.exit);
Version data entries
5 entries across 5 versions & 1 rubygems