# vitest-canvas-mock — card for AI agents

Mocks the canvas API in Vitest.

Category: Testing · npm package `vitest-canvas-mock` · latest version 1.2.0 (checked 2026-11-01)
Install: `npm install vitest-canvas-mock`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 41.6 (#2954 of all tools, 86 of 122 in its category)
- Downloads last week: 1,738,171 (as of 2026-11-24), +58.2% over 4 weeks
- GitHub stars: 70 (as of 2026-11-24)
- Last push: 2026-09-05

## Often used with
Vite 100.0%, Vitest 100.0%, i18next 85.7%, i18next-browser-languagedetector 85.7%, Testing Library 78.6%, Husky 78.6%

## Links
- AgentGid page: https://agentgid.com/tools/vitest-canvas-mock/
- Homepage: https://github.com/wobsoriano/vitest-canvas-mock#readme
- Repository: https://github.com/wobsoriano/vitest-canvas-mock

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
