Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rickhanlonii/jest-watch-master

Jest watch plugin for checking changes since master
https://github.com/rickhanlonii/jest-watch-master

Last synced: 3 months ago
JSON representation

Jest watch plugin for checking changes since master

Awesome Lists containing this project

README

        





jest-watch-master


Jest watch plugin for checking changes since master


Requires Jest >= 23.6.0



### Install

Install `jest` and `jest-watch-master`

```bash
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`:

```json
{
"jest": {
"watchPlugins": ["jest-watch-master"]
}
}
```

Or in `jest.config.js`

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

### Options

#### `branch: string`

To specify a branch other than master, use the `branch` setting:

```json
{
"jest": {
"watchPlugins": [["jest-watch-master", { "branch": "feature" }]]
}
}
```