tschaub / mock-fs

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

Use the real fs module if in a require() call #139

Closed tschaub closed 8 years ago

tschaub commented 8 years ago

This makes it so require() calls work as expected (with the real fs) even after a mock is created.

Fixes #130. Fixes #12.