jest-extended
jest-extended copied to clipboard
Add failing element to `satisfyAll` and `satisfyAny` error messages
What
Add failing element to satisfyAll
and satisfyAny
error messages
Why
This will give a clearer error message of why the assertion failed
Notes
![Screenshot 2022-08-05 at 13 21 09](https://user-images.githubusercontent.com/5610087/183076109-866eb1f5-5571-4efc-9aa8-1e62e2411708.png)
Housekeeping
- [x] Unit tests
- [x] Documentation is up to date
- [x] No additional lint warnings
- [x] Typescript definitions are added/updated where relevant
Codecov Report
Merging #482 (5010b79) into main (877341d) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## main #482 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 71 71
Lines 582 584 +2
Branches 148 150 +2
=========================================
+ Hits 582 584 +2
Impacted Files | Coverage Ξ | |
---|---|---|
src/matchers/toSatisfyAll.js | 100.00% <100.00%> (ΓΈ) |
|
src/matchers/toSatisfyAny.js | 100.00% <100.00%> (ΓΈ) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.