I haven't posted any new code for a while, as I'm working on something more complex that usual which I'll start writing some articles about in the next few weeks.
In the meantime - here's my unit test library for Apps Script.
There are many test packages for Node (my favorite is [ava](
https://github.com/avajs/ava)) and there are also a few for Apps Script but I couldn’t find one that was exactly what I was after, so I’ve released the one I use as a library. Unit testing your code as you go along will make it easier to find errors right away, check results are as expected, and keeping a running repertoire of tests ensures that you don’t break anything when you make changes.
https://ramblings.mcpher.com/gassnippets2/simple-unit-test-library/