arktype icon indicating copy to clipboard operation
arktype copied to clipboard

Check snaps across tsVersions in attest

Open ssalbdivad opened this issue 9 months ago • 0 comments

Currently, since we only populate the snapshots from a single tsVersion, we also only check the primary version for an assertion like attest({}).type.toString.snap("{}").

It would be ideal to only populate the snapshot based on the result of the primary TS version, but check all other versions to ensure they match an existing snapshot value if there is one, or the primary TS version if not.

ssalbdivad avatar May 14 '24 23:05 ssalbdivad