Too Long; Didn't Read
Recently I created a command line utility in JavaScript which parses the file system. I was exploring options to write unit tests for the utility. Since the utility looks at the file system (directories and files), one of the option was to create required directories and files using node’s fs module before the tests execution starts and delete them after the tests execution is completed.