Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 581 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 581 Bytes

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