mitsuhiko / insta

A snapshot testing library for rust
https://insta.rs
Apache License 2.0
2.26k stars 102 forks source link

Canonicalize snapshot paths before reducing #626

Closed max-sixty closed 2 months ago

max-sixty commented 2 months ago

Fixes https://github.com/mitsuhiko/insta/issues/625

As ever, the reason is a bit different from the one I initially understood. It's actually that we're reducing the paths by whether one prefixes the other. But in this case the path is only a prefix before it's canonicalized!

On the upside, this case will now work without --workspace-root.

max-sixty commented 2 months ago

(requires a test before merging)