@alexurdea If you're interested in a more complete mock for the fs module, see mock-fs. It includes support for fs.createWriteStream - and everything else except for fs.FSWatcher based methods.
fs
mock-fs
fs.createWriteStream
fs.FSWatcher