Skip to content

Better handling for changed dimensions #222

@KaelWD

Description

@KaelWD

Currently it overwrites the baseline instead of failing:

cli/src/tdd/tdd-service.js

Lines 1420 to 1426 in 16dc2ff

if (isDimensionMismatchError(error)) {
output.debug(
'comparison',
`${sanitizedName}: dimension mismatch, creating new baseline`
);
saveBaseline(this.baselinePath, filename, imageBuffer);

If it isn't possible to generate a diff for some reason we should still be able to compare them side by side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions