I have code that does
expect.FromSnapshot(t, t.Name() + "Snapshots",
comparabletypes.NewJSONFromString(somString))
where t is a sub-test (that is, this is running inside an outer t.Run)
and when running with -u this snapshot does not get created, and when one of these snapshots exists but isn't used it isn't fagged by Cleanup.
I have code that does
where t is a sub-test (that is, this is running inside an outer
t.Run)and when running with
-uthis snapshot does not get created, and when one of these snapshots exists but isn't used it isn't fagged by Cleanup.