Gathering detailed insights and metrics for expect-even-more-jest
Gathering detailed insights and metrics for expect-even-more-jest
npm install expect-even-more-jest
Typescript
Module System
Node Version
NPM Version
73.9
Supply Chain
88.5
Quality
76.6
Maintenance
100
Vulnerability
98.6
License
TypeScript (90.88%)
JavaScript (9.12%)
Total Downloads
12,889
Last Day
2
Last Week
12
Last Month
207
Last Year
6,130
3 Stars
102 Commits
3 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.19.0
Package Id
expect-even-more-jest@1.19.0
Unpacked Size
29.43 kB
Size
7.25 kB
File Count
5
NPM Version
9.8.1
Node Version
18.18.2
Publised On
18 Jun 2024
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
-81.3%
12
Compared to previous week
Last month
-93.9%
207
Compared to previous month
Last year
110.7%
6,130
Compared to previous year
It's expect-more-jest with even more stuff!
Because expect-more-jest has most of the things I need, but is missing a few, which I'm not entirely sure would be accepted upstream. This way, I present one package with all the tastiness of expect-more-jest as well as all the useful things that I like!
First, check out what expect-more-jest supplies Cool, huh?
Now, in addition to that, I've added:
1describe(`expect-even-more-jest', () => { 2 it(`makes your tests and output easier to read as well!`, async () => { 3 // values 4 expect(SomeClass).toBeConstructor(); 5 expect(new SomeClass()).toBeA(SomeClass); 6 // syntactic sugar: better flowing 7 expect(new ExcitedThing()).toBeAn(ExcitedThing); 8 // test that a value is not null or undefined 9 expect(someValue).toExist(); 10 // tests matching properties on two objects 11 expect({ foo: 1, bar: 2 }) 12 .toIntersectionEqual({ foo: 1, quux: 2 }); 13 14 // mocks & spies 15 expect(spyOrMock).toHaveBeenCalledOnce(); 16 expect(spyOrMock).toHaveBeenCalledOnceWith("hello", "world"); 17 18 // promises 19 // - completed promises have resolved _or_ rejected 20 await expect(Promise.resolve()).toBeCompleted(); 21 await expect(Promise.reject()).toBeCompleted(); 22 23 // test that a promise resolves within a timeframe (defaults to 50 ms) 24 await expect(Promise.resolve()).toBeResolved("should have resolved", 5000); 25 // test that a promise rejects within a timeframe (defaults to 50 ms) 26 await expect(Promise.reject()).toBeRejected("should have rejected", 123); 27 expect(new Promise(() => {})).toBePromiseLike(); 28 29 // file system 30 expect(pathToFile).toBeFile(); 31 expect(pathToFolder).toBeFolder(); 32 33 // collections 34 expect([1, 2, 3 ]).toBeEquivalentTo([ 2, 1, 3]); 35 expect({ foo: 1 }).toHaveKey("foo"); 36 expect({ foo: 1, bar: 2 }).toHaveKeys("foo", "bar"); 37 expect([ 1, 2, 3 ]).toAllMatch(i => i < 4); 38 // performs deep partial equality testing on elements of an array to find 39 // the search object, using jasmine.objectContaining (so you don't need 40 // to match _all_ properties! 41 expect(arrayOfObjects).toContainElementLike(search); 42 }); 43});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/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
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
Score
Last Scanned on 2025-01-06
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