playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
664 stars 62 forks source link

Add unit tests #261

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Initial attempt to add unit testing for PCUI, based on Node's brand new (v18+) test runner and jsdom.

These tests barely scratch the surface of the API but is meant to be a starting framework into which more tests can be written over time. The tests are now run as part of our GitHub Actions.

epreston commented 1 year ago

I'd like to contribute to this, when will this be merged ?

If you like jsdom, and rollup, may I recommend an existing framework (recommended by both on their front page) that gracefully wraps both ?

willeastcott commented 1 year ago

@epreston Y'know, there's no decent reason why I never merged this. Actually, it was sort of a little experiment because I wanted to give the new Node.js built-in test runner a try. I'll merge it now.