Closed abelnation closed 7 years ago
You can do this by getting the binding
.
Example:
var mockfs = require('mock-fs')
var fs = mockfs.fs()
var binding = fs.__get__('binding')
console.dir(binding._system._root)
As far as I can tell this only works for mockfs.fs, rather than mockfs(). Is that intentional?
This was fixed by @ciaranj in #194 and is included in the mock-fs@4
release.
a method like
mockFs.dump()
would be nice for debugging/inspecting