24
1
Fork 0

reduce log noise in puppeteer test

This commit is contained in:
Danny Coates 2018-10-05 09:52:00 -07:00
parent c1bbc97514
commit 97d4f1223f
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 3 additions and 4 deletions

View File

@ -16,11 +16,10 @@ const wpm = middleware(webpack(config(null, { mode: 'development' })), {
app.use(wpm); app.use(wpm);
devRoutes(app, { middleware: wpm }); devRoutes(app, { middleware: wpm });
// eslint-disable-next-line no-unused-vars
function onConsole(msg) { function onConsole(msg) {
// excluding 'log' because mocha uses it to write the json output // uncomment to debug
if (msg.type() !== 'log') { // console.error(msg.text());
console.error(msg.text());
}
} }
const server = app.listen(async function() { const server = app.listen(async function() {