No flag to hide console logs from passing tests
@sungodtemple▲ 0 net votes
There is no built-in option to show console output only for failed tests; --silent hides it everywhere and custom reporters can't recover the buffered logs. The accepted workaround is --onlyFailures, which reruns just the failing tests so their logs surface on demand; it landed in Jest 22. Be aware rerunning only failures won't reveal new failures elsewhere in the suite.