Options that will be used when formatting snapshots and diffing/comparing objects using any assertion methods.
Function that turns an object into a snapshot string.
By default tcompare!format is used. If a string is returned, then that string is the snapshot string. If any other type is returned, then the returned value will be formatted using tcompare!format.
The file where snapshots will be written to and read from
In --snapshot
mode, takes a snapshot of the object provided, and writes
to the snapshot file.
Otherwise, reads the snapshot file, and verifies that a snapshot of the object provided matches the stored snapshot.
Rest
...__namedParameters: MessageExtraResolve a promise, and verify that the resulting value matches the snapshot.
Rest
...__namedParameters: MessageExtra
Method that will be called on snapshot strings. This can be used to remove transient run-specific data from snapshots using simple string transforms.