Install jest
(it needs Jest 23.FIXME+) and jest-watch-toggle-verbosity
yarn add --dev jest jest-watch-toggle-verbosity
# or with NPM
npm install --save-dev jest jest-watch-toggle-verbosity
In your package.json
{
"jest": {
"watchPlugins": ["jest-watch-toggle-verbosity"]
}
}
Or in jest.config.js
module.exports = {
watchPlugins: ['jest-watch-toggle-verbosity'],
}
yarn jest --watch
# or with NPM
npx jest --watch