pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.72k stars 565 forks source link

Escape carriage returns explicitly #772

Closed stephencelis closed 11 months ago

stephencelis commented 11 months ago

Either Xcode or SwiftSyntax is stripping the carriage return out of the snapshot, but either way we should probably explicitly escape them for visibility.

Fixes #771.

lukeredpath commented 11 months ago

Testing this branch out on my failing test now.

lukeredpath commented 11 months ago

Can confirm this fixes the issue for my specific test failure. 🎉

stephencelis commented 11 months ago

@lukeredpath Great! Will merge when green and cut a patch release in the next few days after the dust settles a bit more.