You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1029,6 +1030,28 @@ test('passes when value is a valid toBeDateString', () => {
1029
1030
});
1030
1031
```
1031
1032
1033
+
### .toBeJsonMatching(expectation)
1034
+
1035
+
Use `.toBeJsonMatching` to check that a string is the JSON representation of a JavaScript object that matches a subset of the properties of the expectation. It will match received JSON representations of objects with properties that are **not** in the expectation.
1036
+
1037
+
```js
1038
+
test('passes when given JSON string matches expectation', () => {
0 commit comments