(p: string, contents: string)
| 116 | |
| 117 | /** Write a file directly (bypasses the mocked API) — used in fixture setup. */ |
| 118 | export async function writeFileRaw(p: string, contents: string): Promise<void> { |
| 119 | await fs.mkdir(path.dirname(p), { recursive: true }) |
| 120 | await fs.writeFile(p, contents, "utf-8") |
| 121 | } |
| 122 | |
| 123 | /** Check if a file exists on disk. */ |
| 124 | export async function fileExists(p: string): Promise<boolean> { |
no outgoing calls
no test coverage detected