capture-stdout
Version:
Small efficient ES6 class that captures all stdout calls and stores the calls as an array of strings. Very useful for confirming expected output behavior during tests.
4 lines (3 loc) • 57 B
Markdown
Small efficient ES6 class that captures all stdout calls and stores the calls as an array of strings. Very useful for confirming expected output behavior during tests.