Inspired by tape-watch, since that was the fastest solution I could find to run tape tests in watch mode, but I got annoyed by the memory leak warnings it was throwing and also thought I could make the experience a bit more fun.
From command line if installed globally:
Or install locally as a dev dependency and add it to package json scripts:
"tdd": "tape-watcher src/**.spec.js"
Type in the letters while the watch mode is active and press enter. A new run will be triggered with the changed option taking effect.
d: toggle showing actual and expected or their colored diff
i: toggle printing values with or without and indentation
1 to 9: set objectPrintDepth for printing
r: manually trigger the re-run of all the tests (not needed if watch is working well)
q: quit, exit process (same as hitting ctrl + c)
npm i tape-watcher --save-dev