test: use blazediff instead of pixelmatch (#54941)

This commit is contained in:
Teimur Gasanov
2025-09-12 09:38:50 +06:00
committed by GitHub
parent 8af8de294b
commit 1a2574aaeb
4 changed files with 5 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ import chalk from 'chalk';
import fse from 'fs-extra';
import difference from 'lodash/difference';
import minimist from 'minimist';
import pixelmatch from 'pixelmatch';
import blazediff from '@blazediff/core';
import { PNG } from 'pngjs';
import sharp from 'sharp';
import simpleGit from 'simple-git';
@@ -62,7 +62,7 @@ const compareScreenshots = async (
const diffPng = new PNG({ width: targetWidth, height: targetHeight });
const mismatchedPixels = pixelmatch(
const mismatchedPixels = blazediff(
resizedBasePng.data,
resizedCurrentPng.data,
diffPng.data,