Gathering detailed insights and metrics for jest-plugin-for-each
Gathering detailed insights and metrics for jest-plugin-for-each
npm install jest-plugin-for-each
Typescript
Module System
26.1
Supply Chain
35
Quality
71.2
Maintenance
100
Vulnerability
97.3
License
JavaScript (100%)
Total Downloads
63,623
Last Day
63
Last Week
297
Last Month
874
Last Year
8,298
107 Stars
286 Commits
6 Forks
2 Watching
1 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
2.9.0
Package Id
jest-plugin-for-each@2.9.0
Unpacked Size
3.28 kB
Size
1.57 kB
File Count
6
Cumulative downloads
Total Downloads
Last day
152%
63
Compared to previous day
Last week
58%
297
Compared to previous week
Last month
4.4%
874
Compared to previous month
Last year
81.1%
8,298
Compared to previous year
2
1
Jest plugin to test multiple values for a single outcome.
Install jest-plugin-for-each
using yarn
:
1yarn add --dev jest-plugin-for-each
Building off of jest-plugin-set
, we can use jest-plugin-for-each
to define a set of tests that all expect the same outcome given a different set of fixed values. Here's an example:
1// TODO
If you want, you can import forEach
from jest-plugin-for-each
at the top of every test:
1import forEach from 'jest-plugin-for-each';
If you want to install forEach
as a global, you can modify the jest
section of your package.json
to include:
1"jest": { 2 "setupFiles": [ 3 "jest-plugin-for-each/setup" 4 ] 5}
Here's an example test that tests forEach
itself:
1// TODO
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
87 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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