We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab83f8 commit 447dea4Copy full SHA for 447dea4
index.d.ts
@@ -27,6 +27,12 @@ declare module "snapshot-diff" {
27
* make it available via `expect.extend({ toMatchDiffSnapshot })`.
28
*/
29
toMatchDiffSnapshot: (newObject: any) => void
30
+ /**
31
+ * By default Jest adds extra quotes around strings so it makes diff
32
+ * snapshots of objects too noisy. To fix this – snapshot-diff comes
33
+ * with custom serializer.
34
+ */
35
+ getSnapshotDiffSerializer: () => jest.SnapshotSerializerPlugin
36
}
37
const diff: SnapshotDiff
38
export = diff
0 commit comments