New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-jest

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jest

Gulp plugin for running your Jest tests

  • 4.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Build Status Code Climate Test Coverage

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

Keywords

FAQs

Package last updated on 09 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc