diff --git a/packages/default-reporter/src/index.ts b/packages/default-reporter/src/index.ts index 39bf10aa293..acc5f900939 100644 --- a/packages/default-reporter/src/index.ts +++ b/packages/default-reporter/src/index.ts @@ -104,6 +104,12 @@ export function toOutput$ ( const progressPushStream = new Rx.Subject() const stagePushStream = new Rx.Subject() const deprecationPushStream = new Rx.Subject() + if (opts.reportingOptions?.logLevel == 'error') { + // disable logging + // workaround for Rx.Subject.empty() + // https://github.com/ReactiveX/rxjs/discussions/6916 + deprecationPushStream.next = () => null + } const summaryPushStream = new Rx.Subject() const lifecyclePushStream = new Rx.Subject() const statsPushStream = new Rx.Subject()