You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Puppeteer via Jest (which provides global.document from JSDOM), isNode variable which new debug function uses improperly returns false.
What is the expected result?
Puppeteer remains relatively silent, not spamming with debug messages unless told to.
What happens instead?
Jest causes Puppeteer to spam the console with countless console.logs.
In fact, there are so many now that I've reached the limit of log length and my builds started crashing. This did not occur in v4.x.
I guess the core issue is that
there is no way to stop the console.logs via any config, unlike in debug package where DEBUG env variable has to be provided for it to start logging debug stuff AND
console.logs are used in Node environment if document variable is available
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
When running Puppeteer via Jest (which provides global.document from JSDOM), isNode variable which new debug function uses improperly returns
false
.What is the expected result?
Puppeteer remains relatively silent, not spamming with debug messages unless told to.
What happens instead?
Jest causes Puppeteer to spam the console with countless console.logs.
In fact, there are so many now that I've reached the limit of log length and my builds started crashing. This did not occur in v4.x.
I guess the core issue is that
debug
package where DEBUG env variable has to be provided for it to start logging debug stuff ANDdocument
variable is availableThe text was updated successfully, but these errors were encountered: