Gathering detailed insights and metrics for expect-even-more-jest
Gathering detailed insights and metrics for expect-even-more-jest
Gathering detailed insights and metrics for expect-even-more-jest
Gathering detailed insights and metrics for expect-even-more-jest
expect-more-jest with even more stuff
npm install expect-even-more-jest
Typescript
Module System
Node Version
NPM Version
70.3
Supply Chain
88.5
Quality
76.5
Maintenance
100
Vulnerability
98.6
License
TypeScript (90.88%)
JavaScript (9.12%)
Total Downloads
15,274
Last Day
1
Last Week
23
Last Month
318
Last Year
7,621
BSD-3-Clause License
3 Stars
102 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Sep 13, 2024
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
Published on
Jun 18, 2024
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-66.7%
23
Compared to previous week
Last Month
-6.7%
318
Compared to previous month
Last Year
127%
7,621
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 dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
8 existing vulnerabilities detected
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
project is not fuzzed
Details
Reason
security policy file not detected
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-05-05
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