Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/util/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { extend } from './util';
import type {Window} from '../types/window';

const { window: _window } = new jsdom.JSDOM('', {
url: 'http://localhost',
virtualConsole: new jsdom.VirtualConsole().sendTo(console)
});

Expand All @@ -28,6 +29,7 @@ function restore(): Window {

// Create new window and inject into exported object
const { window } = new jsdom.JSDOM('', {
url: 'http://localhost',
// Send jsdom console output to the node console object.
virtualConsole: new jsdom.VirtualConsole().sendTo(console)
});
Expand Down