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

Switch to node-canvas for running unit tests #7223

Merged
merged 11 commits into from
Dec 20, 2024
Merged

Switch to node-canvas for running unit tests #7223

merged 11 commits into from
Dec 20, 2024

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Dec 20, 2024

Switch from skia-canvas to @napi-rs/canvas for running unit tests in Node (since it supports Apple Silicon). Note that canvas should support Apple Silicon soon too when v3.0.0 is released and compatible with jsdom. We should switch to that when we are able.

This PR means we can now use vanilla DOM API to set up the unit tests.

We can also drop xhr2.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@willeastcott willeastcott merged commit 32c018b into main Dec 20, 2024
8 checks passed
@willeastcott willeastcott deleted the node-canvas branch December 20, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants