(projectRoot: string)
| 241 | } |
| 242 | |
| 243 | function startCodeWalk(projectRoot: string): Promise<string[] | null> { |
| 244 | return Promise.resolve().then(() => { |
| 245 | try { |
| 246 | const results: string[] = []; |
| 247 | walkFiles(projectRoot, projectRoot, results, CODE_IGNORED_DIRS, (name) => |
| 248 | CODE_FILE_BASENAME_REGEX.test(name), |
| 249 | ); |
| 250 | return results; |
| 251 | } catch { |
| 252 | return null; |
| 253 | } |
| 254 | }); |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * Trigger (or return the in-flight) walk of `projectRoot` for code files. |
no test coverage detected