-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unpatch
method
#4
Comments
The same requirement.. |
What do you guys think about the following syntax: import {patchFs} from 'fs-monkey';
import {vol} from 'memfs';
const unpatch = patchFs(vol);
// Do your stuff...
unpatch(); |
I hope it works: |
Thank you for the greate work first. |
Now I use "postInstall" to fix it. |
@footearth Thanks for the find, my bad. Fixed version coming soon. |
This needs documentation |
I want to use this in tests. It would be great to have a
unpatch
method for after tests have run.patchFs
could return a method to unpatch.Or maybe
patchfs(require('fs'))
will work?The text was updated successfully, but these errors were encountered: