Skip to content

Commit 57b05d9

Browse files
fix(report): do not relativize paths if outdir was not set
This would never be a bug for the user but related tests were failing due to previous commit.
1 parent c7bfe03 commit 57b05d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ace-report/src/report-builders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class ReportBuilder {
161161
}
162162
withTestSubject(url, title, identifier, metadata, links) {
163163
var url_ = url;
164-
if (this.outdir != "" && reportConfig["use-relative-paths"]) {
164+
if (this.outdir !== undefined && this.outdir != "" && reportConfig["use-relative-paths"]) {
165165
url_ = path.relative(this.outdir, url);
166166
}
167167
withTestSubject(this._json, url_, title, identifier, metadata, links);

0 commit comments

Comments
 (0)