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

Jest Mocking for Canvas #122

Open
CMCDragonkai opened this issue Jul 24, 2022 · 0 comments
Open

Jest Mocking for Canvas #122

CMCDragonkai opened this issue Jul 24, 2022 · 0 comments
Labels
r&d:polykey:supporting activity Supporting core activity

Comments

@CMCDragonkai
Copy link
Member

Original Author: CMCDragonkai

Must use https://github.com/hustcc/jest-canvas-mock if Polykey uses canvas and during jest testing.

This is currently done in Prism.

I have to put this in the tests/setup.ts:

import 'jest-canvas-mock';

This ensures that the canvas element is mocked.

@CMCDragonkai CMCDragonkai added the r&d:polykey:supporting activity Supporting core activity label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r&d:polykey:supporting activity Supporting core activity
Development

No branches or pull requests

1 participant