4.0.4 • Published 3 years ago
gulp-jest v4.0.4
gulp-jest
Gulp plugin for the Jest test library
Installation
$ npm install gulp-jest jest
Usage
var jest = require('gulp-jest').default;
gulp.task('jest', function () {
return gulp.src('__tests__').pipe(jest({
"preprocessorIgnorePatterns": [
"<rootDir>/dist/", "<rootDir>/node_modules/"
],
"automock": false
}));
});
process.env.NODE_ENV
Unlike the jest
CLI tool, gulp-jest
does not automatically set process.env.NODE_ENV
to be test
. If you are using Webpack or Babel, you may need to manually set process.env.NODE_ENV
prior to running the task itself.
gulp.task('jest', function () {
process.env.NODE_ENV = 'test';
return gulp.src('__tests__').pipe(jest({
...
}));
});
API
jest(options)
options
as per Jest config
License
MIT © Dominic Barker
4.0.4
3 years ago
4.0.3
5 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.0.0
7 years ago
1.0.0
7 years ago
0.6.3
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.2
8 years ago
0.5.1
8 years ago
0.5.0
8 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.4
9 years ago
0.2.3
9 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.0.0
10 years ago