[](https://travis-ci.org/jest-community/jest-watch-select-projects) [](https://badge.fury.io/js/jest-watch-select-projects)
 ## Usage ### Install Install `jest`_(it needs Jest 23+)_ and `jest-watch-select-projects` ```bash 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` ```json { "jest": { "watchPlugins": ["jest-watch-select-projects"] } } ``` Or in `jest.config.js` ```js module.exports = { watchPlugins: ['jest-watch-select-projects'], }; ``` ### Configuring your key and prompt name ```js module.exports = { watchPlugins: [ [ 'jest-watch-select-projects', { key: 'X', // function or string prompt() { const activeProjectsText = this._getActiveProjectsText(); return 'do something with my custom prompt'; }, }, ], ], }; ``` ### Run Jest in watch mode ```bash yarn jest --watch ``` ## FAQ **Why is this running all of my projects?** Make certain that you're using the SPACE key to toggle the selected state of projects and the ENTER key to confirm your settings.