(path: string)
| 39 | } |
| 40 | |
| 41 | async function readOptionalFile(path: string): Promise<string> { |
| 42 | try { |
| 43 | return await readFile(path, 'utf-8'); |
| 44 | } catch { |
| 45 | return ''; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | function snapshotLogEnv(): Record<(typeof LOG_ENV_KEYS)[number], string | undefined> { |
| 50 | return Object.fromEntries(LOG_ENV_KEYS.map((key) => [key, process.env[key]])) as Record< |
no test coverage detected