caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
build | 8 months ago | |
node_modules | 8 months ago | |
CHANGELOG.md | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
filename.js | 8 months ago | |
package.json | 8 months ago | |
testname.js | 8 months ago |
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