( data: ScreenshotDiffResult, useColor: boolean, )
| 379 | } |
| 380 | |
| 381 | function formatScreenshotDiffPixelCountLines( |
| 382 | data: ScreenshotDiffResult, |
| 383 | useColor: boolean, |
| 384 | ): string[] { |
| 385 | const differentPixels = toNumber(data.differentPixels); |
| 386 | const totalPixels = toNumber(data.totalPixels); |
| 387 | const diffCount = useColor ? colorize(String(differentPixels), 'red') : String(differentPixels); |
| 388 | return [` ${diffCount} different / ${totalPixels} total pixels`]; |
| 389 | } |
| 390 | |
| 391 | function formatScreenshotDiffHintLines(data: ScreenshotDiffResult, useColor: boolean): string[] { |
| 392 | const hints = formatScreenshotDiffHints(data); |
no test coverage detected