Skip to content

Commit 1f4a994

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ const eventReporter: any = function (this: any, baseReporterDecorator: any, conf
259259
failureCb && failureCb();
260260
}
261261
}
262+
263+
// avoid duplicate failure message
264+
this.specFailure = () => {};
262265
};
263266

264267
eventReporter.$inject = ['baseReporterDecorator', 'config'];
@@ -278,6 +281,12 @@ const sourceMapReporter: any = function (this: any, baseReporterDecorator: any,
278281
});
279282
}
280283
};
284+
285+
// avoid duplicate complete message
286+
this.onRunComplete = () => {};
287+
288+
// avoid duplicate failure message
289+
this.specFailure = () => {};
281290
};
282291

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

0 commit comments

Comments
 (0)