(absolutePath: string, cwd: string)
| 145 | } |
| 146 | |
| 147 | function relativePathOrAbsolute(absolutePath: string, cwd: string): string { |
| 148 | const relative = path.relative(cwd, absolutePath); |
| 149 | if (relative.length > 0 && !relative.startsWith('..') && !path.isAbsolute(relative)) { |
| 150 | return relative; |
| 151 | } |
| 152 | |
| 153 | return absolutePath; |
| 154 | } |
| 155 | |
| 156 | function normalizeExistingDefaults(config?: ProjectConfig): { |
| 157 | projectPath?: string; |
no outgoing calls
no test coverage detected