(file, dirs = targetDirs)
| 251 | * dir prefix so the output stays compact. |
| 252 | */ |
| 253 | export function shortPath(file, dirs = targetDirs) { |
| 254 | for (const dir of dirs) { |
| 255 | const prefix = `${dir}/`; |
| 256 | if (file.startsWith(prefix)) { |
| 257 | return file.slice(prefix.length); |
| 258 | } |
| 259 | } |
| 260 | return file; |
| 261 | } |
| 262 | |
| 263 | /** Print a summary of compilation results and per-file diagnostics. */ |
| 264 | function printReport(failures, totalCompiled, fileCount, hadErrors) { |
no outgoing calls
no test coverage detected