Add testing via jest
dkundel opened this issue · comments
Dominik Kundel commented
We should add some basic testing using jest. This might require some refactoring to make the code a bit more testable.
Dan Gilkerson commented
I'd like to work on this
Dominik Kundel commented
That would be great :) let me know if you need anything from me!
Dan Gilkerson commented
Is there a reason node_modules are checked in?
Dominik Kundel commented
Yes those are the production dependencies only. It's a GitHub actions thing. i described it in #6
Dan Gilkerson commented
I exported a function in main to test since I wanted to minimize the changes in case there were other changes on going. Probably should pull the code out of main.js when things are stable.