Gathering detailed insights and metrics for jest-callslike
Gathering detailed insights and metrics for jest-callslike
Gathering detailed insights and metrics for jest-callslike
Gathering detailed insights and metrics for jest-callslike
A jest assertion that checks calls for count, order and informed parameters, all at once
npm install jest-callslike
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (48.44%)
JavaScript (44.11%)
Shell (7.45%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
9 Commits
3 Watchers
2 Branches
3 Contributors
Updated on Aug 11, 2022
Latest Version
0.2.1
Package Id
jest-callslike@0.2.1
Unpacked Size
8.30 kB
Size
3.36 kB
File Count
6
NPM Version
8.11.0
Node Version
16.16.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
A jest assertion that checks calls for count, order and informed parameters, all at once.
npm i jest-callslike
Import this module in your test
1import 'jest-callslike';
Then, just use the assertion informing each group of arguments as an array
1expect(spy).toHaveCallsLike( 2 ['a', 1, false], 3 ['b', 2, true], 4);
If you want to check if the function was never called, use the assertion with no arguments:
1expect(spy).toHaveCallsLike();
jest-callslike also adds a new custom matcher expect.exact. This matcher only passes when the value compared to it is exact the same used, ie, the same reference:
1expect(spy).toHaveCallsLike(expect.exact(myObject));
Licensed under MIT.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/8 approved changesets -- 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
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
Reason
32 existing vulnerabilities detected
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