[](https://github.com/jest-community/jest-watch-typeahead/actions/workflows/nodejs.yml) [](https://badge.fury.io/js/jest-watch-typeahead)
 ## Usage ### Install Install `jest`_(it needs Jest 27+)_ and `jest-watch-typeahead` ```bash yarn add --dev jest jest-watch-typeahead # or with NPM npm install --save-dev jest jest-watch-typeahead ``` ### Add it to your Jest config In your `package.json` ```json { "jest": { "watchPlugins": [ "jest-watch-typeahead/filename", "jest-watch-typeahead/testname" ] } } ``` Or in `jest.config.js` ```js module.exports = { watchPlugins: [ 'jest-watch-typeahead/filename', 'jest-watch-typeahead/testname', ], }; ``` ### Configuring your key and prompt name ```js module.exports = { watchPlugins: [ [ 'jest-watch-typeahead/filename', { key: 'k', prompt: 'do something with my custom prompt', }, ], ], }; ``` ### Run Jest in watch mode ```bash yarn jest --watch ```