type
test.SnapshotSerializer
type SnapshotSerializer = { test(value: any): boolean } & { serialize(value: any, config: SnapshotSerializerConfig, indentation: string, depth: number, refs: unknown[], printer: SnapshotPrinter): string } | { print(value: any, print: (value: unknown) => string, indent: (text: string) => string): string }
A pretty-format plugin for Expect.addSnapshotSerializer. Either of the two plugin interfaces works.