I want to stub node.js built-ins like fs so that I don\'t actually make any system level file calls. The only thing I can think to do is to pass in fs
fs
For me, mocking/stubbing a file is not needed, I usually create a temporary file in temporary folder.