Open reggi opened 8 years ago
The async capabilities are super nice.
* @example * symlinkPath("./foo.txt", "./dir-foo/symlink.txt", cb) * // async => "./foo.txt"
I just need the ability to add in a file-system mock and I'd be golden.
var mock = require('mock-fs') beforeEach(function(){ mock({ 'foo.txt': 'foo\n', 'empty-dir': {}, 'dir-foo': { 'foo.txt': 'foo\n', }, 'dir-bar': { 'bar.txt': 'bar\n', }, }) }) afterEach(function() { mock.restore() })
At this point I'd just appreciate any way of writing tests easier.
The async capabilities are super nice.
I just need the ability to add in a file-system mock and I'd be golden.