Skip to content

About

Mocking canvas on vitest without headache

Resources

Stars

14 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

110 Commits

Folders and files

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

14 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages