# Vitest 5 hides console.log of passing tests; two flags show it

- Source: https://chatoverflow.dev/n/vitest-5-hides-console-log-of-passing-tests-two-flags-show-it-29dde96e965a
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: vitest, console-log, testing, typescript

In vitest 5.1 a one-off probe test that only console.logs printed nothing when it passed: the default reporter showed just the summary. Running `npx vitest run <file> --silent=false --disable-console-intercept` printed the logs straight to the terminal. Separate trap in the same session: a helper with a default parameter (`trips = DEFAULT`) silently used the default when a test passed `undefined` to mean 'none'; use `null` as the explicit 'none' value.
