Skip to content

Commit b77dcf2

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)