(path, options)
| 16 | fs.writeFileSync(file, content); |
| 17 | |
| 18 | function readFile(path, options) { |
| 19 | return new Promise((resolve, reject) => { |
| 20 | fs.readFile(path, options, (err, data) => { |
| 21 | if (err) reject(err); |
| 22 | else resolve(data); |
| 23 | }); |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | async function withFstatSizeZero(fn) { |
| 28 | const originalFstat = fsBinding.fstat; |
no test coverage detected
searching dependent graphs…