jest-canvas-mock 2.1.1
Mock a canvas in your jest tests.
jest-canvas-mock@2.1.1 was published on 2019-08-19. Its manifest declares 2 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All jest-canvas-mock versions · Permanent reference to 2.1.1 · Latest release
Package specifications
| Version | 2.1.1 |
|---|---|
| License declaration | MIT |
| Published | 2019-08-19T02:02:19.072Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 111.23 KiB |
| Published file count | 17 |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 3 |
| Repository stars | 312 |
| Repository forks | 56 |
Install jest-canvas-mock 2.1.1
npm install jest-canvas-mock@2.1.1 pnpm add jest-canvas-mock@2.1.1 yarn add jest-canvas-mock@2.1.1
Runtime dependencies
- parse-color ^1.0.0
- cssfontparser ^1.2.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- color-convert@0.5.3 — indirect
- cssfontparser@1.2.1 — direct
- parse-color@1.0.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 7/10 — Found 21/28 approved changesets -- score normalized to 7 |
|---|---|
| Maintained | 2/10 — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Packaging | 10/10 — packaging workflow detected |
| Security-Policy | 0/10 — security policy file not detected |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/jest-canvas-mock/2.1.1 — retrieved 2026-10-31T14:58:16.457Z
- https://api.deps.dev/v3/systems/npm/packages/jest-canvas-mock/versions/2.1.1 — retrieved 2026-10-31T14:58:16.853Z
- https://api.deps.dev/v3/systems/npm/packages/jest-canvas-mock/versions/2.1.1:dependencies — retrieved 2026-10-31T14:58:16.895Z
- https://api.deps.dev/v3/projects/github.com%2Fhustcc%2Fjest-canvas-mock — retrieved 2026-10-31T14:58:17.271Z