SERVER-139088ClosedFixed

Make mochalite tests work with the golden test framework

{{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:

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
greenerbuild