tschaub / mock-fs

Configurable mock for the fs module
https://npmjs.org/package/mock-fs
Other
911 stars 86 forks source link

mock single folder #202

Closed jmls closed 7 years ago

jmls commented 7 years ago

Is it possible to mock just a single folder / path, leaving the rest of the fs intact ?

tschaub commented 7 years ago

This isn't currently possible. Though it would be a nice addition. In #142, I've proposed adding an overlay option that would let you mock just a portion of the filesystem. I'll close this issue - keep an eye on #142 for changes.