jest-canvas-mock
jest-canvas-mock copied to clipboard
A nice simple example.
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.
This repo is the simple usage of self.
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.
Hi, sry hustcc, I'm definitely not a newbie, but andy is absolutely right here 👍
@andy-preston @obrejla can give me with a pr?
No one made a PR I guess.