Repository navigation
Commit 159aceb
authored
test(cli): the docs-scan case reads the scan's walk, not every doc (#10060)
test(cli): the docs-scan case reads the scan's walk, not every doc
import-hint-correctness's "builds its fixture where a scan of the
repo's docs running at the same time never finds it" called
collectDocs() only to read the scanned file list, so it imported all
1,482 doc files under the test runner. Earlier cases used to leave
many of them loaded. Once they no longer did, the case took 2.9 s
alone and over 30 s in a loaded full run. docs-drift.mjs now exports
docFiles(), the walk collectDocs() imports from, and the case asserts
on it, with a known doc as a positive control. It imports no doc.1 parent 66f5a07 commit 159aceb
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | | - | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| |||
0 commit comments