We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use emptyDir(…) in a mocha after hook to delete files generated by my test cases:
emptyDir(…)
after
after('remove compiled files', function() { fs.emptyDir('./build'); });
This throws the following error in node's fs (?) if no callback argument is provided:
fs
callback
TypeError: undefined is not a function at FSReqWrap.oncomplete (fs.js:95:15)
If I provide an empty function as callback, all is fine:
after('remove compiled files', function() { fs.emptyDir('./build', function(){}); });
I'm on Node v0.12.2.
The text was updated successfully, but these errors were encountered:
This definitely shouldn't throw an error if no callback is provided, but why don't you just do this in meantime?
after('remove compiled files', function(done) { fs.emptyDir('./build', done); });
Sorry, something went wrong.
@deyhle I can't reproduce, perhaps this has been fixed?
Going to assume this is fixed. Closing.
No branches or pull requests
I use
emptyDir(…)
in a mochaafter
hook to delete files generated by my test cases:This throws the following error in node's
fs
(?) if nocallback
argument is provided:If I provide an empty function as callback, all is fine:
I'm on Node v0.12.2.
The text was updated successfully, but these errors were encountered: