jest-watch-lerna-packages
A Jest watch plugin to select Lerna packages to test
Usage
Install
Install jest
(it needs Jest 23+) and jest-watch-lerna-packages
yarn add --dev jest jest-watch-lerna-packages # or with NPM npm install --save-dev jest jest-watch-lerna-packages
Add it to your Jest config
In your package.json
Or in jest.config.js
moduleexports = watchPlugins: 'jest-watch-lerna-packages';
Run Jest in watch mode
yarn jest --watch
FAQ
Why is this not filtering my packages?
Make certain that you're using the SPACE key to toggle the selected state of packages and the ENTER key to confirm your settings.