0.1.0 • Published 9 years ago
gulp-jester v0.1.0
gulp-jest
Gulp plugin for the Jest test library
Installation
$ npm install gulp-jest
Usage
var jest = require('gulp-jest');
gulp.task('jest', function () {
return gulp.src('__tests__').pipe(jest({
scriptPreprocessor: "./spec/support/preprocessor.js",
unmockedModulePathPatterns: [
"node_modules/react"
],
testDirectoryName: "spec",
testPathIgnorePatterns: [
"node_modules",
"spec/support"
],
moduleFileExtensions: [
"js",
"json",
"react"
]
}));
});
API
jest(options)
options
as per Jest config
License
MIT © Dominic Barker
0.1.0
9 years ago