Skip to content

TextDiffReporter should not throw if files differ #106

@claremacrae

Description

@claremacrae

This needs checking, but I believe that using TextDiffReporter will change the behaviour of failing tests - from throwing the Approvals-specific mismatch exception - to throwing an exception to indicate that the “system call failed”.

This is because diff returns a non-zero exit code when files differ.

We already saw this in our own tests, but didn’t appreciate the consequences at the time.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions