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.
2 parents b7e27ef + 1400421 commit d8a89ddCopy full SHA for d8a89dd
packages/karma-typescript/src/karma/reporter.ts
@@ -106,12 +106,12 @@ export class Reporter {
106
private getReportDestination(browser: any, reportConfig: any, reportType: any) {
107
108
if (lodash.isPlainObject(reportConfig)) {
109
- let subdirectory = reportConfig.subdirectory || browser.name;
+ let subdirectory = reportConfig.subdirectory ?? browser.name;
110
if (typeof subdirectory === "function") {
111
subdirectory = subdirectory(browser);
112
}
113
114
- return path.join(reportConfig.directory || "coverage", subdirectory);
+ return path.join(reportConfig.directory ?? "coverage", subdirectory);
115
116
117
if (lodash.isString(reportConfig) && reportConfig.length > 0) {
0 commit comments