Skip to content

Instantly share code, notes, and snippets.

@pid
Created January 6, 2014 00:56
Show Gist options
  • 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