0.1.0 • Published 9 years ago

gulp-jester v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Build Status

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