I've created a CLI using commander.js.
I've written unit tests for all my source code, but I'd like to write an integration test that uses the executable file.
How do people test CLIs? I can hack something together, but I assume there must a best practice for testing CLIs.