gulp-jest
Gulp plugin for the Jest test library
$ npm install gulp-jest jest-cli
var jest = require('gulp-jest').default;
gulp.task('jest', function () {
return gulp.src('__tests__').pipe(jest({
config: {
"preprocessorIgnorePatterns": [
"<rootDir>/dist/", "<rootDir>/node_modules/"
],
"automock": false
}
}));
});
as per Jest config
MIT © Dominic Barker