(specPath)
| 72 | } |
| 73 | |
| 74 | export async function loadSpec(specPath) { |
| 75 | const fullPath = path.resolve(ROOT, specPath); |
| 76 | const markdown = await readFile(fullPath, 'utf8'); |
| 77 | return { |
| 78 | path: path.relative(ROOT, fullPath), |
| 79 | ...parseFrontmatter(markdown), |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | async function listMarkdownFiles(dir) { |
| 84 | try { |
no test coverage detected