Gathering detailed insights and metrics for jest-transform-stub-named
Gathering detailed insights and metrics for jest-transform-stub-named
Gathering detailed insights and metrics for jest-transform-stub-named
Gathering detailed insights and metrics for jest-transform-stub-named
npm install jest-transform-stub-named
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
18 Commits
2 Watching
2 Branches
1 Contributors
Updated on 15 Feb 2019
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-66.7%
1
Compared to previous week
Last month
-65.3%
17
Compared to previous month
Last year
499%
1,174
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.
Forked from jest-transform-stub
the difference is that this library mocks every media file to return its filename. Makes it possible to test that the correct images are loaded for components.
1npm install --save-dev jest-transform-stub-named
In your Jest config, add jest-transform-stub-named 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-named" 7 } 8 } 9}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 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
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