[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
vitest docs config disableconsoleintercept.md
630 B · 20 lines
Markdown
at v4


title: disableConsoleIntercept | Config outline: deep #

disableConsoleIntercept #

  • Type: boolean
  • CLI: --disableConsoleIntercept
  • Default: false

By default, Vitest automatically intercepts console logging during tests for extra formatting of test file, test title, etc.

This is also required for console log preview on Vitest UI.

However, disabling such interception might help when you want to debug a code with normal synchronous terminal console logging.

::: warning This option has no effect on browser tests since Vitest preserves original logging in browser devtools. :::