(name, expected, actual)
| 191 | const table = buildRoutingTable(projectRoot); |
| 192 | const paths = surfacePaths(projectRoot); |
| 193 | const skillContent = fs.readFileSync(paths.skillTable, 'utf8'); |
| 194 | const demoContent = fs.existsSync(paths.demoData) ? fs.readFileSync(paths.demoData, 'utf8') : null; |
| 195 | const jsonContent = fs.existsSync(paths.json) ? fs.readFileSync(paths.json, 'utf8') : null; |
| 196 | const expectedSkillContent = replaceBlock( |
| 197 | replaceBlock(skillContent, MARKERS.exactCommandTable, renderExactCommandTable(), 'skills/do/SKILL.md'), |
| 198 | MARKERS.skillTable, |
| 199 | renderSkillTable(table), |
| 200 | 'skills/do/SKILL.md', |
| 201 | ); |
| 202 | const expectedDemoContent = demoContent === null ? null : replaceBlock( |
| 203 | replaceBlock(demoContent, MARKERS.demoExactData, renderDemoExactData(), 'docs/index.html'), |
| 204 | MARKERS.demoData, |
| 205 | renderDemoData(table), |
| 206 | 'docs/index.html', |
| 207 | ); |
| 208 | |
| 209 | return { |
| 210 | table, |
| 211 | surfaces: [ |
| 212 | { |
| 213 | name: 'routing-table.json', |
| 214 | filePath: paths.json, |
| 215 | actual: jsonContent, |
no outgoing calls
no test coverage detected