Commit a1f0af0
committed
fix(observability-map): make the corpus harness cover what it claims
CodeRabbit round on #4455, four findings in the mutation corpus.
The baseline scan ran in the describe callback body, which Vitest executes
during collection, where the suite's timeout option does not apply and a throw
has no test name to attach to. It now runs in beforeAll with its own timeout.
Collection of the enabled file drops from 9.7s to 3.7s, and the full corpus
passes in 282s with no --testTimeout flag.
readTree filtered with an inline copy of the scanner's file predicate, so the
corpus could materialize files scanDirectory never reads and still count them
towards the anti-vacuity thresholds. It uses the exported isScannableFile now.
No behaviour change today: the two predicates were identical.
The additive-coverage assertion reads no route tree and cost nothing, so
gating it behind OBS_MAP_MUTATION_CORPUS only hid a stale list from the run
people actually do. Moved next to the registry assertion.
merge-comma-expressions is labelled preserving but would have merged a
directive prologue into 'use client', foo(), which is no longer a directive.
No route has that shape today; the guard and its test are there so the label
stays true.1 parent 5158846 commit a1f0af0
3 files changed
Lines changed: 44 additions & 13 deletions
Lines changed: 38 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
221 | 247 | | |
222 | 248 | | |
223 | 249 | | |
| |||
231 | 257 | | |
232 | 258 | | |
233 | 259 | | |
234 | | - | |
235 | | - | |
| 260 | + | |
| 261 | + | |
236 | 262 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
245 | 271 | | |
246 | 272 | | |
247 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
824 | 827 | | |
825 | 828 | | |
826 | 829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1362 | 1364 | | |
1363 | 1365 | | |
1364 | 1366 | | |
| |||
0 commit comments