Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A nice simple example. #71

Open
andy-preston opened this issue Nov 9, 2020 · 5 comments
Open

A nice simple example. #71

andy-preston opened this issue Nov 9, 2020 · 5 comments

Comments

@andy-preston
Copy link

andy-preston commented Nov 9, 2020

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.

@hustcc
Copy link
Owner

hustcc commented Nov 9, 2020

This repo is the simple usage of self.

@andy-preston
Copy link
Author

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.

@obrejla
Copy link

obrejla commented Nov 13, 2020

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

@hustcc
Copy link
Owner

hustcc commented May 6, 2022

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

@SalahAdDin
Copy link

No one made a PR I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants