()
| 87 | let cachedSource: string | null = null; |
| 88 | |
| 89 | const resolveConfigPath = (): string | null => { |
| 90 | if (resolvedConfigPath) return resolvedConfigPath; |
| 91 | const candidates = options.configPath ? [options.configPath] : DEFAULT_CONFIG_CANDIDATES; |
| 92 | for (const candidate of candidates) { |
| 93 | const abs = isAbsolute(candidate) ? candidate : resolvePath(projectRoot, candidate); |
| 94 | if (existsSync(abs)) { |
| 95 | resolvedConfigPath = abs; |
| 96 | return abs; |
| 97 | } |
| 98 | } |
| 99 | return null; |
| 100 | }; |
| 101 | |
| 102 | const resolveJsoncPath = (): string | null => { |
| 103 | if (resolvedJsoncPath) return resolvedJsoncPath; |
no outgoing calls
no test coverage detected