(name: string)
| 18 | |
| 19 | /** Sanitize test name for use as filename: strip leading slashes, replace / with - */ |
| 20 | export function sanitizeTestName(name: string): string { |
| 21 | return name.replace(/^\/+/, '').replace(/\//g, '-'); |
| 22 | } |
| 23 | |
| 24 | /** Atomic write: write to .tmp then rename. Non-fatal on error. */ |
| 25 | function atomicWriteSync(filePath: string, data: string): void { |
no outgoing calls
no test coverage detected