You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mock-fs in my tests and they fail on node 8.
I ran the module test suite and there is a lot of errors.
Attached the test log mock-fs@node8-test.txt
It looks like node 8 is throwing away the values provided to callback by mock-fs.
// Special case of `makeCallback()` that is specific to async `*stat()` calls as
// an optimization, since the data passed back to the callback needs to be
// transformed anyway.
function makeStatsCallback(cb) {
if (cb === undefined) {
return rethrow();
}
if (typeof cb !== 'function') {
throw new TypeError('"callback" argument must be a function');
}
return function(err) {
if (err) return cb(err);
cb(err, statsFromValues());
};
}
Activity
AGrzes commentedon Jun 5, 2017
It looks like node 8 is throwing away the values provided to callback by mock-fs.
https://github.com/nodejs/node/blob/v8.0.0/lib/fs.js#L139-L155
AGrzes commentedon Jun 5, 2017
Related issue #197 and PR nodejs/node#11665
AGrzes commentedon Jun 5, 2017
Started work in #209
tschaub commentedon Jun 11, 2017
Fix published in
mock-fs@4.4. Thanks @AGrzes.