Skip to content
JS
Package

jest-canvas-mock

Mock a canvas in your jest tests.

v2.5.8, 9 Jul 2026MITCommonJSTypes: BundledTestingDev servers and API mocking
$ npm install jest-canvas-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
2m
-5% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
2 months ago
v2.5.8
GitHub stars
312
54 forks
Open issues / PRs
18 / 2
Contributors
-
Commits, last 52 weeks
3

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3m4mSept 2025Mar 2026Sept 2026High 3.1m (21 Jul 2026)Low 910.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,950,121 downloads last week, 8,962,997 in the last month. The 12-month change of -5% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
222 in total
Latest version
2.5.8, 9 Jul 20262 months ago
First published
25 Dec 2017
Last push to GitHub
9 Jul 202677 days before the snapshot
Repository archived
No
Open issues
18
Open pull requests
2
Commits, last 52 weeks
3
Dependents on npm
200

Major versions

  1. v2 first release 2.0.0, 22 Apr 2019
  2. v1 first release 1.0.0, 24 Feb 2018
  3. v0 first release 0.0.1, 25 Dec 2017

Recent releases

VersionPublished
2.5.89 Jul 2026
2.5.319 May 2026
2.5.228 Jun 2023
2.5.118 May 2023
2.5.023 Mar 2023
2.4.028 Apr 2022
2.3.17 Feb 2021
2.3.029 Sept 2020
2.2.06 Nov 2019
2.1.29 Oct 2019
2.1.119 Aug 2019
2.1.014 May 2019
2.0.022 Apr 2019
1.1.03 Jul 2018
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
111 kB
Dependencies (2)
moo-colorcssfontparser
npm install jest-canvas-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/jest-canvas-mock@2.5.8/
  • unpkghttps://unpkg.com/jest-canvas-mock@2.5.8/
  • esm.shhttps://esm.sh/jest-canvas-mock@2.5.8
PackageWeekly downloadsGzipLast releaseModuleComparison
vitest-canvas-mock819.6k-20 days agoESM + CommonJS-
jest-launchdarkly-mock76.6k-6 months agoCommonJS-
jest-localstorage-mock281k-3 years agoESM + CommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
jest-useragent-mock46.6k-6 years agoCommonJS-
jest-websocket-mock212.9k-3 years agoESM + CommonJS-
jest-mock-vscode26k-1 month agoCommonJS-
fetch-mock-cache456.8k-2 months agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.