jest-canvas-mock icon indicating copy to clipboard operation
jest-canvas-mock copied to clipboard

A nice simple example.

Open andy-preston opened this issue 4 years ago • 5 comments

For those of us who are newbies, it'd be really useful if you had a nice simple example of a complete test in your docs. Something very minimal but complete that just gives us an idea of how the mock should be implemented in our tests.

andy-preston avatar Nov 09 '20 12:11 andy-preston

This repo is the simple usage of self.

hustcc avatar Nov 09 '20 12:11 hustcc

In the end, I went to your tests in https://github.com/hustcc/jest-canvas-mock/blob/master/tests/classes/CanvasRenderingContext2D.scale.js and that gave me enough of an idea of basic set up to get it working for me. But it would be still be nice to have a complete, simple "getting started" example in the documentation.

andy-preston avatar Nov 10 '20 09:11 andy-preston

Hi, sry hustcc, I'm definitely not a newbie, but andy is absolutely right here 👍

obrejla avatar Nov 13 '20 22:11 obrejla

@andy-preston @obrejla can give me with a pr?

hustcc avatar May 06 '22 08:05 hustcc

No one made a PR I guess.

SalahAdDin avatar Oct 05 '23 16:10 SalahAdDin