Skip to content

mas0061/gulp-jest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('.').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'
        ]
    }));
});

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%