Package
jest-canvas-mock
Mock a canvas in your jest tests.
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
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
- v2 first release 2.0.0, 22 Apr 2019
- v1 first release 1.0.0, 24 Feb 2018
- v0 first release 0.0.1, 25 Dec 2017
Recent releases
| Version | Published |
|---|---|
| 2.5.8 | 9 Jul 2026 |
| 2.5.3 | 19 May 2026 |
| 2.5.2 | 28 Jun 2023 |
| 2.5.1 | 18 May 2023 |
| 2.5.0 | 23 Mar 2023 |
| 2.4.0 | 28 Apr 2022 |
| 2.3.1 | 7 Feb 2021 |
| 2.3.0 | 29 Sept 2020 |
| 2.2.0 | 6 Nov 2019 |
| 2.1.2 | 9 Oct 2019 |
| 2.1.1 | 19 Aug 2019 |
| 2.1.0 | 14 May 2019 |
| 2.0.0 | 22 Apr 2019 |
| 1.1.0 | 3 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- jsDelivr
https://cdn.jsdelivr.net/npm/jest-canvas-mock@2.5.8/ - unpkg
https://unpkg.com/jest-canvas-mock@2.5.8/ - esm.sh
https://esm.sh/jest-canvas-mock@2.5.8
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| vitest-canvas-mock | 819.6k | - | 20 days ago | ESM + CommonJS | - |
| jest-launchdarkly-mock | 76.6k | - | 6 months ago | CommonJS | - |
| jest-localstorage-mock | 281k | - | 3 years ago | ESM + CommonJS | - |
| mock-match-media | 31.2k | - | 11 months ago | ESM + CommonJS | - |
| jest-useragent-mock | 46.6k | - | 6 years ago | CommonJS | - |
| jest-websocket-mock | 212.9k | - | 3 years ago | ESM + CommonJS | - |
| jest-mock-vscode | 26k | - | 1 month ago | CommonJS | - |
| fetch-mock-cache | 456.8k | - | 2 months ago | ESM only | - |
Indexability: Indexed.