We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47f8845 commit bbbfb45Copy full SHA for bbbfb45
src/screenshot/screenshot-compare.ts
@@ -22,7 +22,7 @@ export async function compareScreenshot(
22
testPath: string,
23
pixelmatchThreshold: number,
24
) {
25
- const currentImageHash = createHash('md5').update(currentScreenshotBuf).digest('hex');
+ const currentImageHash = createHash('sha256').update(currentScreenshotBuf).digest('hex');
26
const currentImageName = `${currentImageHash}.png`;
27
const currentImagePath = join(screenshotBuildData.imagesDir, currentImageName);
28
0 commit comments