jest-extended
jest-extended copied to clipboard
Add toBeArrayWithFloats matcher
What
New matcher for easier comparisons of arrays with floating-point numbers
Why
To make unit testing easier for developers ;)
Notes
Housekeeping
- [+] Unit tests
- [+] Documentation is up to date
- [+] No additional lint warnings
- [+] Add yourself to contributors list (
yarn contributor
) - [+] Typescript definitions are added/updated where relevant
Codecov Report
Merging #199 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #199 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 109 111 +2
Lines 554 588 +34
Branches 97 106 +9
=====================================
+ Hits 554 588 +34
Impacted Files | Coverage Δ | |
---|---|---|
src/matchers/toBeArrayWithFloats/predicate.js | 100% <100%> (ø) |
|
src/matchers/toBeArrayWithFloats/index.js | 100% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 124db14...5a84183. Read the comment docs.