pointfreeco / swift-snapshot-testing

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

Prevent writing artifacts to invalid location #759

Open smidf opened 1 year ago

smidf commented 1 year ago

If SNAPSHOT_ARTIFACTS value is dynamically obtained from an environment variable, an empty string is set for the non-existing variable. This change prevents writing the artifacts to an invalid / prohibited location.

smidf commented 6 months ago

@stephencelis, @mbrandonw Any feedback on this small fix, guys?