DEV Community

Discussion on: How would you write tests for a Node CLI?

Collapse
 
orkon profile image
Alex Rudenko

I think this project github.com/sstephenson/bats can come handy! I have never used it myself though. For me, it was always enough to write tests with mocha & chai (i.e. test that arguments are parsed correctly and your internal logic). What exactly do you want to achieve by testing via CLI?