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
Jest stub transform with filename instead of blank to allow for better snapshot tests
npm install jest-transform-stub-named
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
18 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Feb 15, 2019
Latest Version
1.0.1
Package Id
jest-transform-stub-named@1.0.1
Unpacked Size
2.75 kB
Size
1.61 kB
File Count
4
NPM Version
6.4.1
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/14 approved changesets -- 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
67 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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