Skip to content

Conversation

helloitsjoe
Copy link

@helloitsjoe helloitsjoe commented Oct 21, 2020

Hi Matt!

I noticed in your readme you want to add unit tests - I've set up Jest for canvas-sketch and added a few basic tests just to get the ball rolling. I'm happy to add more but wanted to submit a PR early in case you have any feedback.

  • Add jest
  • Set up babel to handle ES6 import syntax
  • Add unit tests for createCanvas and SketchManager

@helloitsjoe
Copy link
Author

helloitsjoe commented Nov 6, 2020

I had some time so I added a few more tests.

Also, It looks like the Netlify pipeline isn't passing because it's still on Node 8, but Jest 26/27 require Node 10 or above. I would downgrade to Jest 24, but it doesn't play as nicely with the canvas package (and also Node 8 is no longer supported)

@alvinometric alvinometric self-assigned this Oct 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants