mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
[jsdom] use new VirtualConsole constructor
This commit is contained in:
parent
2d7a0874f0
commit
8391f308b7
@ -136,7 +136,7 @@ export function renderAndGetWindow (url, opts = {}) {
|
||||
process.exit(1)
|
||||
}
|
||||
}
|
||||
let virtualConsole = jsdom.createVirtualConsole().sendTo(console)
|
||||
let virtualConsole = new jsdom.VirtualConsole().sendTo(console)
|
||||
if (opts.virtualConsole === false) {
|
||||
virtualConsole = undefined
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user