-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
golden_overrides.js writes everything passed to print to the golden file, so mochalite's test report (✔ ..., Test Report Summary) ends up in it and golden tests can't use mocha style.
Fix: route mochalite's stdout/stderr through globalThis.withoutGoldenCapture when it is defined:
const notGolden = (fn) => (globalThis.withoutGoldenCapture ?? ((fn) => fn()))(fn); const stdout = (msg) => notGolden(() => jsTest.log.info(msg)); const stderr = (msg, attr) => notGolden(() => jsTest.log.error(redText(msg), attr));