Snapshot
Namespace: Scriptorium.Nib.Snapshot Parent: Scriptorium.Nib.Snapshot.global
type Snapshot static member matches : snapshotName : string -> config : SnapshotConfig option -> testFilePath : string option -> Assertion<‘a> static member matchesWith : serialize : (‘a -> string) -> snapshotName : string -> config : SnapshotConfig option -> testFilePath : string option -> Assertion<‘a>
Description
Snapshot assertions for Scriptorium.Nib.
Methods
matches
Asserts that the subject matches a stored snapshot, using the default serializer.
ParameterssnapshotName : string
Unique name for this snapshot within the test file.
config : SnapshotConfig option
Optional snapshot configuration. Uses SnapshotConfig.Default when omitted.
testFilePath : string option
matchesWith
Asserts that the subject matches a stored snapshot, using a custom serializer.
Parametersserialize : (‘a -> string)
Transforms the subject into a string representation.
snapshotName : string
Unique name for this snapshot within the test file.
config : SnapshotConfig option
Optional snapshot configuration. Uses SnapshotConfig.Default when omitted.
testFilePath : string option