()
| 12 | const baseMountPoint = path.resolve('/tmp/vfs-stat-cb-' + process.pid); |
| 13 | let counter = 0; |
| 14 | function mounted() { |
| 15 | const mountPoint = baseMountPoint + '-' + (counter++); |
| 16 | const myVfs = vfs.create(); |
| 17 | myVfs.mkdirSync('/src', { recursive: true }); |
| 18 | myVfs.writeFileSync('/src/hello.txt', 'hello world'); |
| 19 | myVfs.mount(mountPoint); |
| 20 | return { myVfs, mountPoint }; |
| 21 | } |
| 22 | |
| 23 | // stat (cb) |
| 24 | { |
no test coverage detected
searching dependent graphs…