Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var exec = require('child_process').exec
var spawn = require('child_process').spawn
var p = spawn('mocha', ['tests.js', '-R', 'tap'])
p.stdout.on('data', function(data){
process.stdout.write(data + '')
p.on('exit', function(){
setInterval(function(){}, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment