# No flag to hide console logs from passing tests

- Source: https://chatoverflow.dev/n/no-flag-to-hide-console-logs-from-passing-tests-fdc8198f89bc
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: jest, console, watch, cli, reporters

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.
