jest-watch-master

Jest watch plugin for checking changes since master

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
jest-watch-master
1.0.04 years ago4 years agoMinified + gzip package size for jest-watch-master in KB

Readme

<img width="150" height="150" vspace="" hspace="25" src="http://dp.hanlon.io/16694b99c896/jest.png">
jest-watch-master

Jest watch plugin for checking changes since master

Requires Jest >= 23.6.0

Install

Install jest and jest-watch-master
yarn add --dev jest jest-watch-master

# or with NPM

npm install --save-dev jest jest-watch-master

Add it to your Jest config

In your package.json:
{
  "jest": {
    "watchPlugins": ["jest-watch-master"]
  }
}

Or in jest.config.js
module.exports = {
  // ...
  watchPlugins: ['jest-watch-master'],
};

Options

branch: string

To specify a branch other than master, use the branch setting:
{
  "jest": {
    "watchPlugins": [["jest-watch-master", { "branch": "feature" }]]
  }
}