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
Extend jest to assert arrays with approximate values
npm install jest-matcher-deep-close-to
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
38 Stars
54 Commits
14 Forks
3 Watchers
1 Branches
11 Contributors
Updated on May 13, 2025
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
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
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-07-07
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