From fb6b6281571314dd1a2ae232a403b45d7a548a0d 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 3ce3d25c8..839cef296 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}`); }