Testing a Filesystem Service with memfs + FakeWatchService: No Disk Required
Originally published at recca0120.github.io
How do you test a Node.js service that operates on the filesystem? The obvious approach is to create real files under /tmp, run the tests, then clean up. But that comes with problems: slow I/O, inconsistent...
recca0120.hashnode.dev6 min read