Skip to content

Commit 8350e01

Browse files
committed
fix: use temp path to save diff image
1 parent 37f5352 commit 8350e01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/images-info-saver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class ImagesInfoSaver extends EventEmitter2 {
196196
util.format('Test result: %o\n', testResult) +
197197
`Please report this error to html-reporter team: ${NEW_ISSUE_LINK}.`);
198198
}
199-
diffImg = await this._createDiffInFile(imagesInfo, reportDiffPath, workers);
199+
diffImg = await this._createDiffInFile(imagesInfo, getTempPath(reportDiffPath), workers);
200200
logger(`Created new diff in file ${reportDiffPath}`);
201201
}
202202

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)