log-suppress
A little tool that intercepts console.log output. Ideal for keeping tests output clean.
Especially handy for automated tests so that debug statements don't appear in the middle of test output.
Installation
npm install log-suppress --save
Usage
Log-Suppress takes the current console and optional environment
;
Or for a specific environment
processenvNODE_ENV = 'test';
Other console modules
Using LogSuppress with other console loggers
;
Developing Log-Suppress
If you are planning to fork this repo and continue developing it then here's some info.
Testing
Run the bash tests
make test
Automated Build
This package used travis to perform automated builds (see that build graphic at the top)