Show HN: JavaScript unit testing in under 30 lines
gist.github.com
gist.github.com
process.on('exit', () => (process.exitCode = 1));
I didn't want to assume that people are executing the code in-browser or terminal for the purpose of this Gist, but feel free to fork for your needs.