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

View file

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