(context: { readonly cwd?: string; getCwd?: () => string })
| 852 | * @since 4.0.0 |
| 853 | */ |
| 854 | export function getCwd(context: { readonly cwd?: string; getCwd?: () => string }): string { |
| 855 | return context.cwd ?? context.getCwd?.() ?? process.cwd() |
| 856 | } |
| 857 | |
| 858 | function skipWhitespace(source: string, end: number): number { |
| 859 | while (end > 0 && /\s/.test(source[end - 1])) { |
nothing calls this directly
no outgoing calls
no test coverage detected