(filePath: string)
| 92 | * Check whether a file path falls under the resolved task directory. |
| 93 | */ |
| 94 | export function isUnderTaskDir(filePath: string): boolean { |
| 95 | const taskDir = resolveTaskDir(filePath); |
| 96 | if (!taskDir) return false; |
| 97 | |
| 98 | const normalizedFile = path.resolve(filePath); |
| 99 | const normalizedTaskDir = path.resolve(taskDir); |
| 100 | |
| 101 | return normalizedFile.startsWith(normalizedTaskDir + path.sep); |
| 102 | } |
| 103 | |
| 104 | /** A task entry with its ID and title. */ |
| 105 | export interface TaskEntry { |
no test coverage detected