Skip to content

Commit adb5861

Browse files
Teamopfilipesilva
authored andcommitted
fix(@angular-devkit/build-angular): should not log duplicate messages
1 parent d7e7cd2 commit adb5861

File tree

1 file changed

+9
-0
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/plugins

1 file changed

+9
-0
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/plugins/karma.ts

+9
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ const eventReporter: any = function (this: any, baseReporterDecorator: any) {
240240
failureCb && failureCb();
241241
}
242242
}
243+
244+
// avoid duplicate failure message
245+
this.specFailure = () => {};
243246
};
244247

245248
eventReporter.$inject = ['baseReporterDecorator'];
@@ -271,6 +274,12 @@ const sourceMapReporter: any = function (this: any, baseReporterDecorator: any,
271274
});
272275
}
273276
};
277+
278+
// avoid duplicate complete message
279+
this.onRunComplete = () => {};
280+
281+
// avoid duplicate failure message
282+
this.specFailure = () => {};
274283
};
275284

276285
sourceMapReporter.$inject = ['baseReporterDecorator', 'config'];

0 commit comments

Comments
 (0)