gulp-jest
Gulp plugin for the Jest test library
$ npm install gulp-jest
var jest = require('gulp-jest');
gulp.task('jest', function () {
return gulp.src('.').pipe(jest({
scriptPreprocessor: './node_modules/babel-jest',
unmockedModulePathPatterns: [
'node_modules/react',
'node_modules/react-dom',
'node_modules/react-addons-test-utils',
'node_modules/fbjs'
],
testPathIgnorePatterns: [
'node_modules'
],
moduleFileExtensions: [
'js',
'jsx',
'json',
'react'
]
}));
});
as per Jest config
MIT © Dominic Barker