Installations
npm install jest-matcher-deep-close-to
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.10.0
NPM Version
7.24.0
Score
93.6
Supply Chain
80.3
Quality
75.9
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
maasencioh
Download Statistics
Total Downloads
3,070,489
Last Day
4,580
Last Week
13,069
Last Month
75,189
Last Year
906,549
GitHub Statistics
37 Stars
54 Commits
14 Forks
4 Watching
1 Branches
11 Contributors
Bundle Size
71.16 kB
Minified
22.95 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
3,070,489
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
jest-matcher-deep-close-to
Extend jest to assert arrays and objects with approximate values.
Installation
$ npm i -D jest-matcher-deep-close-to
Usage
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});
License
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/nodejs.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/maasencioh/jest-matcher-deep-close-to/release.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:15
- Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:32
- Warn: npmCommand not pinned by hash: .github/workflows/release.yml:33
- Info: 0 out of 5 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 0 out of 3 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 21 are checked with a SAST tool
Score
3.8
/10
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