Skip to content

create-mediadesign/gulp-jest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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({
        rootDir: 'spec',
        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

About

Gulp plugin for the Jest test lib

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%