Skip to content

Commit 517cd86

Browse files
Log percy results
1 parent bab8f75 commit 517cd86

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/web/test/snapshot.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ async function main(args) {
7878
if (width > 2000) {
7979
img.resize({ width: Math.min(Math.floor(width / 2), 2000) });
8080
}
81-
await img.toFile(join(dir, `${device}.png`));
81+
const info = await img.toFile(join(dir, `${device}.png`));
82+
console.log(` ✓ ${device}: ${info.width}x${info.height}, ${(info.size / 1024).toFixed(1)} KB`);
8283
}
8384

8485
// close the browser and stop the server

0 commit comments

Comments
 (0)