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