diff --git a/packages/vitest/src/runtime/setup.ts b/packages/vitest/src/runtime/setup.ts index 61c1a17848b4..3205a315ee83 100644 --- a/packages/vitest/src/runtime/setup.ts +++ b/packages/vitest/src/runtime/setup.ts @@ -149,6 +149,7 @@ export async function setupConsoleLogSpy() { colorMode: true, groupIndentation: 2, }) + globalThis.console.Console = Console } export async function withEnv(