Skip to content

Commit c4d06ff

Browse files
committed
wip(tests): add console logs in tests
1 parent 0e01a2d commit c4d06ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/testsTools.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@ async function createPage({ files, processors= {}}) {
5151
const output = [];
5252

5353
page.on('console', async msg => {
54+
console.log("console", msg)
5455
output.push({ type: msg.type(), text: msg.text(), content: await Promise.all( msg.args().map(e => e.jsonValue()) ) })
5556
} );
5657
page.on('pageerror', error => {
58+
console.log("pageerror", error)
5759
output.push({ type: 'pageerror', text: error.message, content: error })
5860
} );
59-
60-
page.on('error', msg => console.log('ERROR', msg));
61+
page.on('error', msg => {
62+
console.log('error', msg)
63+
});
6164

6265
//page.done = new Promise(resolve => page.exposeFunction('_done', resolve));
6366

0 commit comments

Comments
 (0)