From b77dcf28501f27e628da641b63d72d2ee6f20e19 Mon Sep 17 00:00:00 2001 From: Maxim Shtyr Date: Thu, 4 Jul 2024 13:42:56 +0300 Subject: [PATCH] fix: use temp path to save diff image --- lib/images-info-saver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/images-info-saver.ts b/lib/images-info-saver.ts index cec9fbd72..ee77b203a 100644 --- a/lib/images-info-saver.ts +++ b/lib/images-info-saver.ts @@ -196,7 +196,7 @@ export class ImagesInfoSaver extends EventEmitter2 { util.format('Test result: %o\n', testResult) + `Please report this error to html-reporter team: ${NEW_ISSUE_LINK}.`); } - diffImg = await this._createDiffInFile(imagesInfo, reportDiffPath, workers); + diffImg = await this._createDiffInFile(imagesInfo, getTempPath(reportDiffPath), workers); logger(`Created new diff in file ${reportDiffPath}`); }