lightning-js / blits

The Lightning 3 App Development Framework
Apache License 2.0
58 stars 9 forks source link

component tests added #110

Open M4tiz opened 3 weeks ago

M4tiz commented 1 week ago

@michielvandergeest Thanks for checking. Rebased on most recent dev branch.

The thing with tests is that we don't have a mechanism of resetting the app state after each test run. I added another method to componentId.js that resets the counter. It's not ideal solution, since usually we don't want to add production code only to be used by tests, however it fixes the issue for now. Let me know if this is fine to you :) or maybe you have other suggestions