Repository navigation
Commit bc1d34f
test(scripts): give sync-template-versions a --self-test wired into Lint & Repo Gates (#9880)
* test(scripts): give sync-template-versions a --self-test covering the red paths and the CLEAN control
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqDQYVU5smx29ts9pAErja
* fix(scripts): make the self-test's stamp-coverage control report before it can crash
Control G asserts every TEXT_STAMPS row has a fixture body, but it ran INSIDE
the fixture block. `buildFixture` indexes SELF_TEST_BODIES by key, so an
uncovered row threw `TypeError: SELF_TEST_BODIES[stamp.key] is not a function`
out of Control A and killed the process before the failure list was printed.
Measured by adding a fourth TEXT_STAMPS row with no body: exit 1 either way —
the gate held — but the one message written for this exact case never reached
the log in the exact case it was written for.
Ordering is the whole fix: the control moves ahead of the scratch dir (it needs
no fixture) and reports through a shared reportFailures(), which also replaces
the duplicated tail block. No case is added, removed or reworded.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqDQYVU5smx29ts9pAErja
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4b99386 commit bc1d34f
3 files changed
Lines changed: 411 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
504 | 540 | | |
505 | 541 | | |
506 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments