| 
				
					 | 
			1 rok temu | |
|---|---|---|
| .. | ||
| build | 1 rok temu | |
| node_modules | 1 rok temu | |
| CHANGELOG.md | 1 rok temu | |
| LICENSE | 1 rok temu | |
| README.md | 1 rok temu | |
| filename.js | 1 rok temu | |
| package.json | 1 rok temu | |
| testname.js | 1 rok temu | |
Install jest(it needs Jest 23+) and jest-watch-typeahead
yarn add --dev jest jest-watch-typeahead
# or with NPM
npm install --save-dev jest jest-watch-typeahead
In your package.json
{
  "jest": {
    "watchPlugins": [
      "jest-watch-typeahead/filename",
      "jest-watch-typeahead/testname"
    ]
  }
}
Or in jest.config.js
module.exports = {
  watchPlugins: [
    'jest-watch-typeahead/filename',
    'jest-watch-typeahead/testname',
  ],
};
module.exports = {
  watchPlugins: [
    [
      'jest-watch-typeahead/filename',
      {
        key: 'k',
        prompt: 'do something with my custom prompt',
      },
    ],
  ],
};
yarn jest --watch