Skip to content

Commit

Permalink
fix(happy-dom): use the nodejs console in happy-dom v11 (#4090)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ortner <>
  • Loading branch information
capricorn86 authored Sep 8, 2023
1 parent 696b79e commit 5943418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/integrations/env/happy-dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default <Environment>({
const { Window, GlobalWindow } = await importModule('happy-dom') as typeof import('happy-dom')
const win = new (GlobalWindow || Window)({
...happyDOM,
console: (console && global.console) ? global.console : undefined,
url: happyDOM.url || 'http://localhost:3000',
})

Expand Down

0 comments on commit 5943418

Please sign in to comment.