Skip to content

Instantly share code, notes, and snippets.

@pid
Created January 6, 2014 00:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pid/8276391 to your computer and use it in GitHub Desktop.
Save pid/8276391 to your computer and use it in GitHub Desktop.
example gulp-mocha
var mocha = require('gulp-mocha');
gulp.task('tests', function() {
gulp.src(['test/test-*.js'], {
read: false
})
.pipe(mocha({
reporter: 'spec',
globals: {
should: require('should')
}
}));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment