Skip to content

Commit 5adebf9

Browse files
filipesilvaKeen Yee Liau
authored and
Keen Yee Liau
committed
fix(@angular-devkit/build-angular): workaround karma issue
See karma-runner/karma#3154
1 parent ea89f75 commit 5adebf9

File tree

1 file changed

+4
-0
lines changed
  • packages/angular_devkit/build_angular/src/karma

1 file changed

+4
-0
lines changed

packages/angular_devkit/build_angular/src/karma/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ export class KarmaBuilder implements Builder<KarmaBuilderSchema> {
9393
// Pass onto Karma to emit BuildEvents.
9494
successCb: () => obs.next({ success: true }),
9595
failureCb: () => obs.next({ success: false }),
96+
// Workaround for https://github.com/karma-runner/karma/issues/3154
97+
// When this workaround is removed, user projects need to be updated to use a Karma
98+
// version that has a fix for this issue.
99+
toJSON: () => { },
96100
};
97101

98102
// TODO: inside the configs, always use the project root and not the workspace root.

0 commit comments

Comments
 (0)