Jest watch plugin for checking changes since master
Clone or download
Latest commit 9c83605 Sep 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add branch setting Sep 11, 2018
.eslintrc.json Add branch setting Sep 11, 2018
.gitignore init Sep 8, 2018
.npmignore init Sep 8, 2018
.prettierrc Add branch setting Sep 11, 2018
LICENSE init Sep 8, 2018
README.md Add branch setting Sep 11, 2018
package.json release 1.0.0 Sep 11, 2018
yarn.lock init Sep 8, 2018

README.md

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" }]]
  }
}