Commit 26e70934 authored by RobPruzan's avatar RobPruzan Committed by Jiachi Liu

clarifying comment

parent 890ade9a
...@@ -69,6 +69,11 @@ const forwardConsole: typeof console = { ...@@ -69,6 +69,11 @@ const forwardConsole: typeof console = {
methods.map((method) => [ methods.map((method) => [
method, method,
(...args: Array<any>) => { (...args: Array<any>) => {
// we don't actually log to stdout/stderr because that causes a significant amount
// of test failures that require non trivial updates. Because we only omit
// logging to stdout/stderr by default, but still perform the entire log collection
// pipeline we wont be missing out on any important coverage, unless the code guarded here
// is bugged
if ( if (
process.env.__NEXT_TEST_MODE && process.env.__NEXT_TEST_MODE &&
!process.env.NEXT_TEST_BROWSER_LOGS !process.env.NEXT_TEST_BROWSER_LOGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment