Gathering detailed insights and metrics for jest-transform-stub
Gathering detailed insights and metrics for jest-transform-stub
Gathering detailed insights and metrics for jest-transform-stub
Gathering detailed insights and metrics for jest-transform-stub
npm install jest-transform-stub
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
112 Stars
9 Commits
5 Forks
3 Watching
9 Branches
3 Contributors
Updated on 24 Sept 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-6.4%
138,122
Compared to previous day
Last week
1.4%
764,906
Compared to previous week
Last month
7.1%
3,260,910
Compared to previous month
Last year
-3.8%
35,867,637
Compared to previous year
1
Jest doesn't handle non JavaScript assets by default.
You can use this module to avoid errors when importing non JavaScript assets.
1npm install --save-dev jest-transform-stub
In your Jest config, add jest-transform-stub to transform non JavaScript assets you want to stub:
1{ 2 "jest": { 3 // .. 4 "transform": { 5 "^.+\\.js$": "babel-jest", 6 ".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub" 7 } 8 } 9}
My module isn't being transformed
Jest doesn't apply transforms to node_modules by default. You can solve this by using moduleNameMapper
:
1{ 2 "jest": { 3 // .. 4 "moduleNameMapper": { 5 "^.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub" 6 } 7 } 8}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/9 approved changesets -- score normalized to 2
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
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
Reason
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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