Gathering detailed insights and metrics for jest-matcher-deep-close-to
Gathering detailed insights and metrics for jest-matcher-deep-close-to
Gathering detailed insights and metrics for jest-matcher-deep-close-to
Gathering detailed insights and metrics for jest-matcher-deep-close-to
npm install jest-matcher-deep-close-to
Typescript
Module System
Node Version
NPM Version
93.6
Supply Chain
80.3
Quality
75.9
Maintenance
100
Vulnerability
99.6
License
TypeScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,070,489
Last Day
4,580
Last Week
13,069
Last Month
75,189
Last Year
906,549
37 Stars
54 Commits
14 Forks
4 Watching
1 Branches
11 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.2
Package Id
jest-matcher-deep-close-to@3.0.2
Unpacked Size
48.29 kB
Size
10.97 kB
File Count
21
NPM Version
7.24.0
Node Version
16.10.0
Cumulative downloads
Total Downloads
Last day
20.5%
4,580
Compared to previous day
Last week
-17.6%
13,069
Compared to previous week
Last month
22.5%
75,189
Compared to previous month
Last year
28.5%
906,549
Compared to previous year
Extend jest to assert arrays and objects with approximate values.
$ npm i -D jest-matcher-deep-close-to
1import {toBeDeepCloseTo,toMatchCloseTo} from 'jest-matcher-deep-close-to'; 2expect.extend({toBeDeepCloseTo, toMatchCloseTo}); 3 4describe('test myModule', () => { 5 it('should return 42', () => { 6 expect([42.0003]).toBeDeepCloseTo([42.0004], 3); 7 }); 8}); 9 10describe('test myModule', () => { 11 it('should return 42', () => { 12 expect({ foo: 42.0003, bar: "xxx", baz: "yyy"}) 13 .toMatchCloseTo({ foo: 42.004, bar: "xxx" }, 3); 14 }); 15});
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 10/21 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More