jest-quiet-reporter
All the Jest reporters out there are either silent or noisy.
jest-quiet-reporter
is a twist on the built-in Default Reporter.
For passing tests, it only outputs "PASS" with the test path and the time. But for failing tests, it shows you the STDOUT and STDERR logs produced during the tests. Now you can console.log
to your heart's content and only see it when you need it.
Usage
Install:
pnpm add -D jest-quiet-reporter
Jest CLI:
jest --reporters=jest-quiet-reporter
Jest configuration file:
{
"reporters": ["jest-quiet-reporter"]
}