From d42e6a4fdecbb64141f33716b2dc2c94d251818a Mon Sep 17 00:00:00 2001 From: Ujas Sidapara Date: Tue, 15 Apr 2025 16:55:47 +0100 Subject: [PATCH] changed algo to sha256 --- src/screenshot/screenshot-compare.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screenshot/screenshot-compare.ts b/src/screenshot/screenshot-compare.ts index a1096ab4230..73ace311a8a 100644 --- a/src/screenshot/screenshot-compare.ts +++ b/src/screenshot/screenshot-compare.ts @@ -22,7 +22,7 @@ export async function compareScreenshot( testPath: string, pixelmatchThreshold: number, ) { - const currentImageHash = createHash('md5').update(currentScreenshotBuf).digest('hex'); + const currentImageHash = createHash('sha256').update(currentScreenshotBuf).digest('hex'); const currentImageName = `${currentImageHash}.png`; const currentImagePath = join(screenshotBuildData.imagesDir, currentImageName);