Skip to content

Feature request: return match percent from comparePdfToSnapshot #93

@vaernion

Description

@vaernion

Currently comparePdfToSnapshot returns true/false and we have to look at the generated heatmap diff to know how much they differed.

If comparePdfToSnapShot could return the equivalent of tolerance [0..1] as well it would be easier to calibrate the appropiate tolerance to use as well as programatically log the difference etc.

It would be a breaking change to make comparePdfToSnapshot return for example { matched: boolean, difference: number}, but maybe worth it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions