Skip to content

Commit 7c4d830

Browse files
authored
Add toMatchDiffSnapshot with options as an API
1 parent 5cb0770 commit 7c4d830

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ type Options = {
127127

128128
// default export
129129
snapshotDiff(valueA: any, valueB: any, options?: Options) => string
130+
// custom matcher
131+
expect(valueA: any).toMatchDiffSnapshot(valueB: any, options?: Options) => void
130132
```
131133

132134
### Options

0 commit comments

Comments
 (0)