Skip to content

Commit 10e0366

Browse files
authored
[patch] fix attach warning (#92)
1 parent 2f8026b commit 10e0366

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/allure-reporter-plugin.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,11 @@ export class AllureReporter {
935935

936936
return;
937937
}
938-
const file = this.allureRuntime.writeAttachment(arg.content, arg.type);
938+
939+
const file = this.allureRuntime.writeAttachment(
940+
arg.content ?? `Could not create attachment: no content for ${arg.name} received`,
941+
arg.type,
942+
);
939943
exec.addAttachment(arg.name, arg.type, file);
940944
}
941945

0 commit comments

Comments
 (0)