Suppress console debug and info logs in tests Plugins and reporting infrastructure generate a significant amount of noise by logging to console.debug and console.info. This change stubs these console methods in the common test setup to keep the test output clean and readable. Release-Notes: skip Change-Id: If4dc07da4bf0c180986b7211675324a8b17ec1c9
diff --git a/polygerrit-ui/app/test/common-test-setup.ts b/polygerrit-ui/app/test/common-test-setup.ts index ace488c..feb5ab4 100644 --- a/polygerrit-ui/app/test/common-test-setup.ts +++ b/polygerrit-ui/app/test/common-test-setup.ts
@@ -104,6 +104,11 @@ } setup(function () { + // Very noisy. There are a lot of plugins / reportings that are logging to + // console.debug and console.info. We don't want to see them in the test output. + sinon.stub(console, 'debug'); + sinon.stub(console, 'info'); + testSetupTimestampMs = new Date().getTime(); currentTestName = this.currentTest?.title || 'unknown test';