(impl: (real: typeof fs.readFileSync, ...args: any[]) => unknown)
| 27 | const injectExecFileSync = (impl: (real: typeof cp.execFileSync, ...args: any[]) => unknown) => |
| 28 | vi.mocked(cp.execFileSync).mockImplementation(((...args: any[]) => impl(actualCp.execFileSync, ...args)) as typeof cp.execFileSync); |
| 29 | const injectReadFileSync = (impl: (real: typeof fs.readFileSync, ...args: any[]) => unknown) => |
| 30 | vi.mocked(fs.readFileSync).mockImplementation(((...args: any[]) => impl(actualFs.readFileSync, ...args)) as typeof fs.readFileSync); |
| 31 | const injectOpenSync = (impl: (real: typeof fs.openSync, ...args: any[]) => unknown) => |
| 32 | vi.mocked(fs.openSync).mockImplementation(((...args: any[]) => impl(actualFs.openSync, ...args)) as typeof fs.openSync); |
| 33 | const reinstateIo = () => { |
no outgoing calls
no test coverage detected