reduce log noise in puppeteer test
This commit is contained in:
parent
c1bbc97514
commit
97d4f1223f
1 changed files with 3 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue