fake-exec
Fake child_process#exec output for testing.
Installation
$ npm install fake-exec --save
Usage
// include dependenciesconst fake = ;const exec = exec; // set up a fake command; // execute a command using native child_process#exec method;
Check out tests (they look good) for more examples.
Tests
$ make test
License
fake-exec is released under the MIT license.