Skip to content

Commit

Permalink
fix: use Uint8Array for diff file writing (#602)
Browse files Browse the repository at this point in the history
Co-authored-by: Sayali Warule <[email protected]>
  • Loading branch information
sayali10 and Sayali Warule authored Dec 2, 2024
1 parent e4ba79f commit 24be0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comparadise-utils/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function compareScreenshots(screenshotFolder: string) {
// Create diff.png next to base and new for review
fs.writeFile(
createImageFileName(screenshotFolder, 'diff'),
PNG.sync.write(diff).toString(),
new Uint8Array(PNG.sync.write(diff)),
err => {
if (err) {
console.error('❌ Diff exists but unable to create diff.png', err);
Expand Down

0 comments on commit 24be0fd

Please sign in to comment.