(path: string, data: unknown)
| 124 | } |
| 125 | |
| 126 | function writeFixture(path: string, data: unknown): void { |
| 127 | ensureDir(dirname(path)) |
| 128 | const sanitized = sanitizeEmails(data) |
| 129 | writeFileSync(path, JSON.stringify(sanitized, null, 2) + '\n') |
| 130 | console.log(` Written: ${path}`) |
| 131 | } |
| 132 | |
| 133 | async function fetchJson<T>(url: string): Promise<T> { |
| 134 | const response = await fetch(url) |
no test coverage detected