Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: provide diffBuffer in ImageDiffError #781

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

KuznetsovRoman
Copy link
Member

Что сделано

  • Обновил looks-same
  • Прокинул diffBuffer

metaInfo = {},
} = await Image.compare(refBuffer, currBuffer, imageCompareOpts);
Object.assign(refImg, metaInfo.refImg);

if (!equal) {
const diffBuffer = await diffImage.createBuffer("png");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут передаю именно Buffer, потому что прототип потеряется, и методов save / createBuffer в html-reporter не будет

@KuznetsovRoman KuznetsovRoman force-pushed the HERMIONE-1088.hermione_diff_buffer branch from 698757d to e3f61ce Compare August 21, 2023 11:57
@KuznetsovRoman KuznetsovRoman merged commit bb25649 into master Aug 21, 2023
2 checks passed
@KuznetsovRoman KuznetsovRoman deleted the HERMIONE-1088.hermione_diff_buffer branch August 21, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants