gulpzilla-jest

4.0.3 • Public • Published

gulpzilla-jest

This adds 2 gulp commands to gulpzilla:

  1. gulp jest
  2. gulp watch-jest

Install

$ npm install --save-dev gulpzilla-jest

Requirement

This plugin requires script: npm run jest

In package.json:

{
  "scripts": {
    "jest": "jest" /* e.g. you can specify NODE_PATH or --[option] here */
  }
}

Configuration

In gulpfile.js:

const gulp = gulpzilla({
  jest: {
    srcDir: __dirname + '__tests__' // test directory
  }
});

Jest Configuration

Configure jest the usual way explained in their official documentation.

For example, in package.json:

{
  "jest": {
    "bail": true,
    "verbose": true,
    "scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
    "testPathDirs": [
      "<rootDir>/__tests__"
    ]
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.31latest

Version History

VersionDownloads (Last 7 Days)Published
4.0.31
4.0.20

Package Sidebar

Install

npm i gulpzilla-jest

Weekly Downloads

1

Version

4.0.3

License

MIT

Last publish

Collaborators

  • alvinsj