Skip to content

Commit

Permalink
Fixed attachment issue for Vitest.
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorg-vardanyan-im committed Jun 4, 2024
1 parent dff02a8 commit f9e61dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ class BaseClass {
* */
logger.info('Uploading attachments to TestRail');
for (let i = 0; i < apiRes.length; i++) {
for (const attachment of localResults[i].attachments) {
let attachments = localResults[i].attachments
if (!attachments) {
continue
}
for (const attachment of attachments) {
await TR_API.addAttachmentToCase(
this.testrailConfigs.base_url,
this.testrailConfigs.user,
Expand Down

0 comments on commit f9e61dd

Please sign in to comment.