Skip to content

Instantly share code, notes, and snippets.

@yurenju
Last active October 3, 2015 02:23
Show Gist options
  • Save yurenju/e3cb96ca9a4baf38e66e to your computer and use it in GitHub Desktop.
Save yurenju/e3cb96ca9a4baf38e66e to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
require('shelljs/global');
fs.watch('client', {recursive: true}, function(event, filename) {
exec('mocha -t 5000 --harmony --growl ' +
'test/test.' + path.basename(filename));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment