Installations
npm install expect-even-more-jest
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
18.18.2
NPM Version
9.8.1
Score
73.9
Supply Chain
88.5
Quality
76.6
Maintenance
100
Vulnerability
98.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (90.88%)
JavaScript (9.12%)
Developer
fluffynuts
Download Statistics
Total Downloads
12,889
Last Day
2
Last Week
12
Last Month
207
Last Year
6,130
GitHub Statistics
3 Stars
102 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
141.85 kB
Minified
36.59 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
12,889
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
expect-even-more-jest
What is it?
It's expect-more-jest with even more stuff!
Why?
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!
Ok, so what's in the tin?
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 3-Clause "New" or "Revised" License: LICENSE:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-all-tests.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/fluffynuts/expect-even-more-jest/run-all-tests.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run-all-tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/fluffynuts/expect-even-more-jest/run-all-tests.yml/master?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
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
- Warn: no topLevel permission defined: .github/workflows/run-all-tests.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 17 are checked with a SAST tool
Score
3.3
/10
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