Show HN: JavaScript unit testing in under 30 lines (gist.github.com) 15 points by freedmand 7y ago ↗ HN
[–] paraditedc 7y ago ↗ This is quite interesting. Would be nice to have error exit code as well, which is important for a CI workflow. [–] freedmand 7y ago ↗ That's a good idea. It'd be as simple as adding the following before line 19: 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.
[–] freedmand 7y ago ↗ That's a good idea. It'd be as simple as adding the following before line 19: 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.
2 comments
[ 2.0 ms ] story [ 15.7 ms ] thread