Gathering detailed insights and metrics for jest-without-globals
Gathering detailed insights and metrics for jest-without-globals
Gathering detailed insights and metrics for jest-without-globals
Gathering detailed insights and metrics for jest-without-globals
npm install jest-without-globals
Typescript
Module System
Node Version
NPM Version
34.2
Supply Chain
48.1
Quality
64.3
Maintenance
50
Vulnerability
92.8
License
TypeScript (100%)
Total Downloads
199,865
Last Day
262
Last Week
875
Last Month
3,140
Last Year
45,095
9 Stars
14 Commits
1 Forks
3 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
jest-without-globals@0.0.3
Unpacked Size
14.04 kB
Size
3.70 kB
File Count
12
NPM Version
6.13.1
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last day
81.9%
262
Compared to previous day
Last week
22.5%
875
Compared to previous week
Last month
-12.9%
3,140
Compared to previous month
Last year
36%
45,095
Compared to previous year
1
4
Explicitly import Jest globals.
npm i -D jest-without-globals
(note that jest
is a peer dependency)
1import { describe, it, expect } from 'jest-without-globals' 2 3describe('describe should create a section', () => { 4 it('it should checkmark', () => { 5 expect('').toBe('') 6 }) 7})
All of the functions available in Jest's API, as well as jest
and expect
, can be imported from jest-without-globals
.
Can take a look at the tests for usage of more of the globals, but basically you can now just import
any Jest global.
Basically just takes Jest's globals and exports them. The source code is currently shorter than this README, so take a look under the hood! :)
Some inspiration came from this workaround to avoid globals, which I had been using in projects previously.
I wanted a package I could re-use in all my projects' tests instead of constantly having to create a helper file and map its name, and so jest-without-globals
was born!
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/9 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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
46 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