()
| 24 | * Get the current working directory or the original working directory if the current one is not available |
| 25 | */ |
| 26 | export function getCwd(): string { |
| 27 | try { |
| 28 | return pwd() |
| 29 | } catch { |
| 30 | return getOriginalCwd() |
| 31 | } |
| 32 | } |
no test coverage detected