Skip to content

Mocking canvas on vitest without headache

Notifications You must be signed in to change notification settings

schirrel/vi-canvas-mock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vi-canvas-mock

This is a fork of jest-canvas-mock replacing the use of Jest to Vitest to have a zero Jest dependancy canvas mock. The code and the mock was develop by @hustcc i simply replace jest with vi.

Thanks for the work @hustcc <3

Install

yarn add -D vi-canvas-mock

or

npm i --save-dev vi-canvas-mock

Usage

Simple import at you vitest.setup as

import 'vi-canvas-mock';

IF you don't have a vitest.setup file take a look at Vitest docs

About

Mocking canvas on vitest without headache

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%