ExportXMLWordPrintableJSON

    • 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));
      

            Assignee:
            Max Verbinnen
            Reporter:
            Max Verbinnen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: