It is a very simple helper module to test command line tools.
npm install --save-dev cli-test-helper
/**
* Converts a string to real files and directories in the file system.
*/
export function stringToFiles(data: string, baseDir: string): Promise<void>;
/**
* Converts files and directories in the file system to a string.
*/
export function filesToString(baseDir: string): Promise<string>;