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

gulp-jest-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-jest-cli

Gulp plugin for Jest

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Gulp Jest CLI CircleCI npm version npm

Gulp plugin for Jest.

Installation

Using npm:
$ npm install gulp-jest-cli jest-cli --save-dev
Using yarn:
$ yarn add gulp-jest-cli jest-cli --dev

Usage

import plugin from 'gulp-jest-cli';

gulp.task('jest', () => gulp
  /*
   * Jest's `rootDir` will be set to the directory specified in `gulp.src`
   * unless a `rootDir` is explicitly configured via configuration options
   */
  .src('src')
  .pipe(plugin({
    config: {
      /* Configuration options */
      {
        coverageReporters: [
          'text',
          'text-summary',
          'json',
          'lcov',
        ],
        collectCoverageFrom: [
          '**/*.js',
          '!**/*test*',
        ]
      }
    },
    /* CLI options*/
    coverage: true,
    onlyChanged: true,
  }))
);

Jest docs for configuration options can be found here.

Configuration options via external file
import plugin from 'gulp-jest-cli';

gulp.task('jest', () => gulp
  .src('src')
  .pipe(plugin({
    config: '.jestrc',
    /* CLI options */
    coverage: true,
    onlyChanged: true,
  }))
);
Configuration options via package.json
import plugin from 'gulp-jest-cli';

gulp.task('jest', () => gulp
  .src('src')
  .pipe(plugin({
    /* Jest will fallback to package.json for configuration when `config` is omitted */
    /* CLI options */
    coverage: true,
    onlyChanged: true,
  }))
);
Questions?

Feel free to reach out to me on Twitter @jmurzy.

Contributing

Contributions are very welcome: bug fixes, features, documentation, tests. Just make sure the CI is 👌.

#### License All pull requests that get merged will be made available under [the MIT license](https://github.com/jmurzy/gulp-jest-cli/blob/master/LICENSE.md), as the rest of the repository.

Keywords

FAQs

Package last updated on 26 Dec 2016

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