I have a bunch of zx automation scripts that become complex enough that I want to unit test them.
Is there any best practice on how to do this? I guess I could refactor the code so that most of the logic lives in normal JS files, and test those, but is there an easier way?