vanilla-todo
vanilla-todo copied to clipboard
Write tests
I'm thinking jsdom should be enough to write (unit) tests:
- Create a test document with the scripts to test
- Mount an element with some functions
- Assert it's properly mounted
- Send events or call public interface
- Assert changes
- Repeat
Headless testing is the same as with any framework/toolchain (no need to implement tests for demonstration).