-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add .toBeJsonMatching(expectation) matcher #481
Conversation
2dede58
to
e05e2e4
Compare
@Belema I like this - could you resolve the conflicts? |
e05e2e4
to
b6f5fcc
Compare
|
b6f5fcc
to
e69748a
Compare
Codecov Report
@@ Coverage Diff @@
## main #481 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 73 74 +1
Lines 674 712 +38
Branches 290 304 +14
=========================================
+ Hits 674 712 +38
|
e69748a
to
6c45fbc
Compare
6c45fbc
to
92d1e5b
Compare
92d1e5b
to
66acafa
Compare
Make sure to add a changeset so this triggers a release |
What
This adds support for a new custom matcher
.toBeJsonMatching(...)
.Why
This matcher is useful when one wants to check that a function has been called with a JSON string that satisfies some constraints,
Housekeeping