live_map-interface
live_map-interface copied to clipboard
Add tests
At the moment there's no tests. I'm just opening up the webpage on a local server and clicking around.
It would be nice to have tests to test the various modules and the interaction they have with the DOM.
Jest has a VDOM that we can use for the DOM interaction testing.
I think utilizing something like jest-fuzz would also be nice to see if random stuff breaks.
Would be nice to test more than just ASCII strings though
Woop. This repo now uses Github actions to automate the testing and deployment (hopefully).
The current workflow is as follows:
- Create a branch for a new feature/fix etc
- Send a PR to develop branch
- Tests will run
- If the tests complete, merge into develop branch
- When enough merges are done to develop, merge it into master
- This merge should automatically bundle and deploy the code to github-release
Hopefully tests will make everything run a bit smoother in terms of releasing new features etc