Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e650397

Browse files
authored
Collect console.debug logs during cypress tests (#11478)
In order for the logs collected by cypress to actually be useful, we really need `cons:debug`.
1 parent 2ff1056 commit e650397

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/support/e2e.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ installLogsCollector({
5050
"cons:info",
5151
"cons:warn",
5252
"cons:error",
53-
// "cons:debug",
53+
// most of our logs go through `loglevel`, which sets `logger.log` to be an alias of `logger.debug`.
54+
// Hence, if we want to capture `logger.log` lines, we need to enable `cons:debug` here.
55+
"cons:debug",
5456
"cy:log",
5557
"cy:xhr",
5658
"cy:fetch",

0 commit comments

Comments
 (0)