Gathering detailed insights and metrics for jasmine-check-temp
Gathering detailed insights and metrics for jasmine-check-temp
Gathering detailed insights and metrics for jasmine-check-temp
Gathering detailed insights and metrics for jasmine-check-temp
Generative testing for JavaScript
npm install jasmine-check-temp
Typescript
Module System
Node Version
NPM Version
69.4
Supply Chain
87.2
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (63.35%)
Clojure (30.58%)
TypeScript (5.41%)
Shell (0.66%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1,176 Stars
305 Commits
39 Forks
12 Watchers
4 Branches
14 Contributors
Updated on Mar 09, 2025
Latest Version
1.0.0-rc.0-temp1
Package Id
jasmine-check-temp@1.0.0-rc.0-temp1
Unpacked Size
9.04 kB
Size
3.62 kB
File Count
4
NPM Version
5.6.0
Node Version
8.11.1
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
1
3
jasmine-check
adds the generative testing power of testcheck-js
to Jasmine. This allows some of your Jasmine tests
to accept arguments and ensure your tests pass not just under your contrived
test cases but also pass for hundreds of randomly generated test cases.
Install jasmine-check
using npm.
1npm install jasmine-check
Then include and install jasmine-check
before your test suite.
1require('jasmine-check').install();
1require('jasmine-check').install(); 2 3describe('MySpec', () => { 4 5 check.it('accepts an int and a string', gen.int, gen.string, (x, y) => { 6 expect(x).toEqual(jasmine.any(Number)); 7 expect(y).toEqual(jasmine.any(String)); 8 }); 9 10});
The gen
global object is provided directly by testcheck-js
and defines what
type of random values to generate. The test will be run numerous times with
different random values, ensuring all expectations are met for every run. If a
test expectation fails, then the test will re-run with "smaller" values until
the smallest failing value is found which can better help explain edge cases
with your test and produce consistent results, despite being initially fueled
by randomness.
If a test is taking a long time, needs to generate larger values, or should be
run with a consistent random seed, you can alter the behavior with options
:
1{ 2 times: number; // the number of test cases to run. Default: 100 3 maxSize: number; // the maximum "size" of the test data. Default: 200 4 seed: number; // defaults to a random value from 1 to 2^32-1. 5}
To use these options with your check, include an options object after the description:
1check.it('runs 10 times', {times: 10}, gen.sPosInt, x => { 2 expect(x).toBeGreaterThan(0); 3});
To learn more about property testing, or to learn about the available value
generators, check out testcheck-js
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
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
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-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