Commit 742737b
committed
test(docs): make DocsPage TOC test resilient to empty docs corpus
The `coverage` CI job runs `vitest run` directly without the fetch-content
prebuild, so the .content/docs glob is empty and SECTIONS has zero entries.
Assert the TOC <ol> exists rather than requiring a populated section list.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent da405c8 commit 742737b
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments