We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 696b79e commit 5943418Copy full SHA for 5943418
packages/vitest/src/integrations/env/happy-dom.ts
@@ -34,6 +34,7 @@ export default <Environment>({
34
const { Window, GlobalWindow } = await importModule('happy-dom') as typeof import('happy-dom')
35
const win = new (GlobalWindow || Window)({
36
...happyDOM,
37
+ console: (console && global.console) ? global.console : undefined,
38
url: happyDOM.url || 'http://localhost:3000',
39
})
40
0 commit comments