Usage
Install
Install jest
(it needs Jest 23+) and jest-watch-select-projects
yarn add --dev jest jest-watch-select-projects
# or with NPM
npm install --save-dev jest jest-watch-select-projects
Add it to your Jest config
In your package.json
{
"jest": {
"watchPlugins": ["jest-watch-select-projects"]
}
}
Or in jest.config.js
module.exports = {
watchPlugins: ['jest-watch-select-projects']
};
Run Jest in watch mode
yarn jest --watch