Skip to content
JS
Package

vitest-canvas-mock

🌗 A module used to mock canvas in Vitest.

v1.2.0, 5 Sept 2026MITESM + CommonJSTypes: BundledTestingDev servers and API mocking
$ npm install vitest-canvas-mock

Key numbers

As of 25 Sept 2026
Weekly downloads
819.6k
+98% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
20 days ago
v1.2.0
GitHub stars
70
11 forks
Open issues / PRs
1 / 2
Contributors
-
Commits, last 52 weeks
77

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (21 Jul 2026)Low 181.3k (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.

819,640 downloads last week, 3,680,089 in the last month. The 12-month change of +98% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
920 in total
Latest version
1.2.0, 5 Sept 202620 days ago
First published
30 Jun 2022
Last push to GitHub
5 Sept 202620 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
2
Commits, last 52 weeks
77
Dependents on npm
6

Major versions

  1. v1 first release 1.0.0, 20 Nov 2025
  2. v0 first release 0.0.1, 30 Jun 2022

Recent releases

VersionPublished
1.2.05 Sept 2026
1.1.513 Aug 2026
1.1.424 Mar 2026
1.1.31 Dec 2025
1.1.220 Nov 2025
1.1.120 Nov 2025
1.1.020 Nov 2025
1.0.120 Nov 2025
1.0.020 Nov 2025
0.3.39 Aug 2023
0.3.229 Jun 2023
0.3.119 Jun 2023
0.3.07 Jun 2023
0.2.216 Nov 2022
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
140 kB
Dependencies (2)
moo-colorcssfontparser
Peer dependencies (1)
vitest
npm install vitest-canvas-mock
  • jsDelivrhttps://cdn.jsdelivr.net/npm/vitest-canvas-mock@1.2.0/
  • unpkghttps://unpkg.com/vitest-canvas-mock@1.2.0/
  • esm.shhttps://esm.sh/vitest-canvas-mock@1.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
jest-canvas-mock2m-2 months agoCommonJS-
vitest-console10.4k-11 months agoESM only-
mocked-env75.4k-5 years agoCommonJS-
vitest-websocket-mock67.3k-14 days agoESM only-
jest-mock-vscode26k-1 month agoCommonJS-
mock-match-media31.2k-11 months agoESM + CommonJS-
@jedmao/redux-mock-store11.5k-6 years agoESM + CommonJS-
mock-xmlhttprequest94k-1 year agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.