Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Add URL to JSDOM
  • Loading branch information
fc authored Oct 23, 2018
commit 02ed5fa069749d1984e5f615b03df57ba4622c1d
1 change: 1 addition & 0 deletions src/util/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,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