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
Check out mock-fs and fake-fs, which do a lot of this already.