tschaub / mock-fs

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

Fix source of open FSREQCALLBACK handles #342

Closed jloleysens closed 2 years ago

jloleysens commented 2 years ago

Closes https://github.com/tschaub/mock-fs/issues/341

When collecting the prototype for ReadFileContext the original fsBinding.open should still be called so that FS read operations can be handled as usual.

3cp commented 2 years ago

@tschaub LGTM.

maximelafarie commented 2 years ago

@3cp @tschaub Man, this is just in time! Will you do a patch/minor release as soon as it's merged?

tschaub commented 2 years ago

Thanks for the fix, @jloleysens. Published in mock-fs@5.1.2.