Skip to content

Commit

Permalink
fix: console.Console is undefined (close: #1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaoboy committed Aug 18, 2022
1 parent 637e2b3 commit a32cbcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/runtime/setup.ts
Expand Up @@ -149,6 +149,7 @@ export async function setupConsoleLogSpy() {
colorMode: true,
groupIndentation: 2,
})
globalThis.console.Console = Console
}

export async function withEnv(
Expand Down

0 comments on commit a32cbcc

Please sign in to comment.