swift-snapshot-testing
swift-snapshot-testing copied to clipboard
Assign an empty image if a view of zero size is being snapshotted
The previous logic was "If an image has a zero frame, make the comparison image the same as the reference image"
This means that tests incorrectly pass if the reference image exists and the comparison view has a size of zero
- Note I think this is the same issue as https://github.com/pointfreeco/swift-snapshot-testing/pull/453
@simondelphia Good catch. Thanks @davisg123 for the PR! We merged the first submission, but appreciate the time you took to fix the problem.