diff --git a/gulp/tasks/test.js b/gulp/tasks/test.js new file mode 100644 index 0000000000000000000000000000000000000000..e4e795ee1b2236232d9ab34d79beaf3ddf20a982 --- /dev/null +++ b/gulp/tasks/test.js @@ -0,0 +1,18 @@ +/** + * Dependencies + */ +const gulp = require('gulp'); +const mocha = require('gulp-mocha'); + +/** + * Module body / Expose + */ +module.exports = (entry, config) => { + config = config || {}; + return gulp.src(entry, config) + .pipe(mocha({ + require: [ + 'babel-register' + ] + })); +};