Skip to content

Commit adeaa27

Browse files
pletchermaxwell
authored andcommitted
Add virtualConsole
1 parent 5dc5c27 commit adeaa27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/root.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ before(function(done) {
1313

1414
const html = path.resolve(__dirname, '..', 'index.html')
1515

16-
jsdom.env(html, [], {src: babelResult.code}, (err, window) => {
16+
jsdom.env(html, [], {
17+
src: babelResult.code,
18+
virtualConsole: jsdom.createVirtualConsole().sendTo(console)
19+
}, (err, window) => {
1720
global.window = window
1821

1922

0 commit comments

Comments
 (0)