mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let virtualConsole = jsdom.createVirtualConsole().sendTo(console)
|
let virtualConsole = new jsdom.VirtualConsole().sendTo(console)
|
||||||
if (opts.virtualConsole === false) {
|
if (opts.virtualConsole === false) {
|
||||||
virtualConsole = undefined
|
virtualConsole = undefined
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user