Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rickhanlonii/jest-watch-master
- Owner: rickhanlonii
- License: mit
- Created: 2018-09-08T18:24:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T23:23:12.000Z (over 3 years ago)
- Last Synced: 2024-10-03T12:22:27.823Z (4 months ago)
- Language: JavaScript
- Size: 45.9 KB
- Stars: 45
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - jest-watch-master - Jest watch plugin for checking changes since master (JavaScript)
- awesome-jest - jest-watch-master
README
### 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" }]]
}
}
```