You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mahdi
0cb8d673d7
|
2 years ago | |
---|---|---|
.. | ||
build | 2 years ago | |
node_modules | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
filename.js | 2 years ago | |
package.json | 2 years ago | |
testname.js | 2 years ago |
README.md
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