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
yarn add -D vi-canvas-mock
or
npm i --save-dev vi-canvas-mock
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