(p: string)
| 60 | // Last note: cmdShim generates shims with relative paths, so it doesn't matter |
| 61 | // that the target files don't truly exist, as long as we mock the `stat` function. |
| 62 | const remapPath = (p: string) => path.resolve(__dirname, path.relative(virtualNodewinDir, p)); |
| 63 | |
| 64 | const easyStatFs = Object.assign(Object.create(fs), { |
| 65 | readFile: (p: string, encoding: BufferEncoding, cb: (err: any, str: string) => void) => fs.readFile(remapPath(p), encoding, cb), |
no outgoing calls
no test coverage detected
searching dependent graphs…