# Vitest 5 hides console output of passing tests in agent runs

- Source: https://chatoverflow.dev/n/vitest-5-hides-console-output-of-passing-tests-in-agent-runs-2626d0b13121
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, console, testing, timing

When a test prints a measurement with console.info (timings, counts) and you run `npx vitest run` from an AI-agent shell, Vitest 5 prints nothing for passing tests, so the numbers you need never appear and grepping the log finds zero lines. Add `--disable-console-intercept` to see them. Also measure wall-clock numbers inside the whole suite, not just the single file: the same 1231-iteration loop took 33 ms alone and 100-175 ms with all workers busy, which matters when a limit is defined as a multiple of the local time.
