We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ng test
reporters
1 parent c13cbd4 commit 5f8230cCopy full SHA for 5f8230c
packages/angular_devkit/build_angular/src/karma/index.ts
@@ -73,9 +73,13 @@ export class KarmaBuilder implements Builder<KarmaBuilderSchema> {
73
74
if (options.reporters) {
75
// Split along commas to make it more natural, and remove empty strings.
76
- karmaOptions.reporters = options.reporters
+ const reporters = options.reporters
77
.reduce<string[]>((acc, curr) => acc.concat(curr.split(/,/)), [])
78
.filter(x => !!x);
79
+
80
+ if (reporters.length > 0) {
81
+ karmaOptions.reporters = reporters;
82
+ }
83
}
84
85
const sourceRoot = builderConfig.sourceRoot && resolve(root, builderConfig.sourceRoot);
0 commit comments