reduce log noise in puppeteer test
This commit is contained in:
parent
c1bbc97514
commit
97d4f1223f
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue