jest-watch-typeahead (1.1.0)
Published 2026-02-24 13:59:09 +00:00 by atheaadmin
Installation
registry=npm install jest-watch-typeahead@1.1.0"jest-watch-typeahead": "1.1.0"About this package
Usage
Install
Install jest(it needs Jest 27+) and jest-watch-typeahead
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
{
"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',
],
};
Configuring your key and prompt name
module.exports = {
watchPlugins: [
[
'jest-watch-typeahead/filename',
{
key: 'k',
prompt: 'do something with my custom prompt',
},
],
],
};
Run Jest in watch mode
yarn jest --watch
Dependencies
Dependencies
| ID | Version |
|---|---|
| ansi-escapes | ^4.3.1 |
| chalk | ^4.0.0 |
| jest-regex-util | ^28.0.0 |
| jest-watcher | ^28.0.0 |
| slash | ^4.0.0 |
| string-length | ^5.0.1 |
| strip-ansi | ^7.0.1 |
Development Dependencies
| ID | Version |
|---|---|
| @babel/cli | ^7.8.4 |
| @babel/core | ^7.9.6 |
| @babel/preset-env | ^7.9.6 |
| @babel/preset-typescript | ^7.10.4 |
| @jest/globals | ^28.0.0 |
| @jest/types | ^28.0.0 |
| @semantic-release/changelog | ^5.0.1 |
| @semantic-release/git | ^9.0.0 |
| @types/jest | ^27.0.0 |
| @types/node | ^16.0.0 |
| @typescript-eslint/eslint-plugin | ^5.0.0 |
| @typescript-eslint/parser | ^5.0.0 |
| babel-jest | ^28.0.0 |
| babel-plugin-add-import-extension | ^1.6.0 |
| cross-env | ^7.0.3 |
| eslint | ^8.0.0 |
| eslint-config-airbnb-base | ^15.0.0 |
| eslint-config-prettier | ^8.0.0 |
| eslint-plugin-import | ^2.20.2 |
| eslint-plugin-jest | ^26.0.0 |
| eslint-plugin-prettier | ^4.0.0 |
| jest | ^28.0.0 |
| prettier | ^2.1.1 |
| rimraf | ^3.0.2 |
| semantic-release | ^17.4.3 |
| semver | ^7.3.5 |
| typescript | ^4.0.2 |
Peer Dependencies
| ID | Version |
|---|---|
| jest | ^27.0.0 || ^28.0.0 |
