BUPKIS
    Preparing search index...

    Type Alias SnapshotSerializer

    SnapshotSerializer: (value: unknown) => string

    Serializer function for converting values to snapshot strings.

    A serializer takes any JavaScript value and converts it to a string representation suitable for storage in a snapshot file.

    Type Declaration

      • (value: unknown): string
      • Parameters

        • value: unknown

          The value to serialize

        Returns string

        String representation of the value

    const serializer: SnapshotSerializer = (value) => {
    return JSON.stringify(value, null, 2);
    };