Open r2evans opened 4 months ago
Definitely anti-ideal workaround, at least to get to the point of comparing generated SVGs to see the differences, optionally accepting the newer versions:
$ sed -i -E "s/class='svglite'/class='svglite' data-engine-version='2.0'/" *.svg
While the images "failed" (likely due to a pixel or two, since snapshot_review(..)
revealed no visible change), all were compared, which is an improvement.
What is interesting, though, is that the resulting .svg
files did not have the data-engine-version=
string within them, and subsequent tests still succeeded. So perhaps there's some other way to determine different-version, or some other way that suggests a file is an "incompatible" version (whatever that means).
If I test just that one test-file, then it skips and does nothing. If I test the whole package, it deletes all of the
.svg
files. At no time am I given the option to regenerate or even know why this behavior is occurring.I get that there is an intention to rebuild them https://github.com/r-lib/vdiffr/blob/45bc98a9219485e51bdaf9eaa66de1f6af4ca02c/R/expect-doppelganger.R#L137-L138 but I find this behavior disrupting and likely avoidable.
Why this dead-end?