(dir?: string)
| 89 | } |
| 90 | |
| 91 | function getReadableCronFilePath(dir?: string): string { |
| 92 | const canonicalPath = getCronFilePath(dir) |
| 93 | if (existsSync(canonicalPath)) { |
| 94 | return canonicalPath |
| 95 | } |
| 96 | const legacyPath = getLegacyCronFilePath(dir) |
| 97 | if (existsSync(legacyPath)) { |
| 98 | return legacyPath |
| 99 | } |
| 100 | return canonicalPath |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Read and parse scheduled_tasks.json. Returns an empty task list if the file |
no test coverage detected