Gathering detailed insights and metrics for jest-mock-canvas-to-blob
Gathering detailed insights and metrics for jest-mock-canvas-to-blob
Gathering detailed insights and metrics for jest-mock-canvas-to-blob
Gathering detailed insights and metrics for jest-mock-canvas-to-blob
npm install jest-mock-canvas-to-blob
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
312 Stars
110 Commits
57 Forks
3 Watchers
3 Branches
26 Contributors
Updated on Jun 23, 2025
Latest Version
1.0.1
Package Id
jest-mock-canvas-to-blob@1.0.1
Unpacked Size
11.99 kB
Size
3.59 kB
File Count
9
NPM Version
6.4.1
Node Version
10.15.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
Mock
canvas
when run unit test cases with jest. Reference.
This should only be installed as a development dependency (devDependencies
) as it is only designed for testing.
1npm i --save-dev jest-canvas-mock
In your package.json
under the jest
, create a setupFiles
array and add jest-canvas-mock
to the array.
1{ 2 "jest": { 3 "setupFiles": ["jest-canvas-mock"] 4 } 5}
If you already have a setupFiles
attribute you can also append jest-canvas-mock
to the array.
1{ 2 "jest": { 3 "setupFiles": ["./__setups__/other.js", "jest-canvas-mock"] 4 } 5}
More about in configuration section.
Alternatively you can create a new setup file which then requires this module or
add the require
statement to an existing setup file.
__setups__/canvas.js
1import 'jest-canvas-mock'; 2// or 3require('jest-canvas-mock');
Add that file to your setupFiles
array:
1"jest": { 2 "setupFiles": [ 3 "./__setups__/canvas.js" 4 ] 5}
MIT@hustcc.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 21/28 approved changesets -- score normalized to 7
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
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
SAST tool is not run on all commits -- score normalized to 0
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