-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
Replace canvas
dependency in@jspsych/config
with jest-canvas-mock
#3488
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: f438099 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks! 🎉 👍 No need to bother people outside the core repo with the canvas dependency. Don't forget to commit the updated package-lock.json 🙂
Maybe this is also a chance to move to jest-canvas-mock in the corresponding packages? I'm in favor of abandoning the canvas dependency altogether, considering all the build issues it has caused in the past 😅 |
ooh I like that idea very much! |
I would've expected the tests to fail since we haven't set up the mocking with jest yet. I guess |
Yeah, that's what I figured too. Got it to break and now it is working again. I ended up replacing the dependency in |
OK well now |
@jspsych/config
to packages that use canvascanvas
dependency in@jspsych/config
with jest-canvas-mock
OK, |
…lve on setupFiles works
No description provided.