()
| 51 | } |
| 52 | |
| 53 | async function listTeamNames(): Promise<string[]> { |
| 54 | try { |
| 55 | const entries = await readdir(getTeamsDir(), { withFileTypes: true }) |
| 56 | return entries |
| 57 | .filter(e => e.isDirectory()) |
| 58 | .map(e => e.name) |
| 59 | .sort() |
| 60 | } catch { |
| 61 | return [] |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | async function formatTeamsSection(): Promise<string> { |
| 66 | const teamNames = await listTeamNames() |
no test coverage detected