(impl: (real: typeof cp.execFileSync, ...args: any[]) => unknown)
| 25 | const actualCp = await vi.importActual<typeof import('child_process')>('child_process'); |
| 26 | const actualFs = await vi.importActual<typeof import('fs')>('fs'); |
| 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) => |
no outgoing calls
no test coverage detected