Commit 2cc4610
fix(scripts): make the last two self-tests prove they reached their verdict (#15123)
`check-type-check-coverage.mjs` and `bare-root-worklist.mjs` were the last two
gates in `scripts/**` that the census reads as DEFEATED: an early `return`
anywhere above the verdict line printed NOTHING and still exited 0, so a
self-test that never finished reported as one that passed.
Both dispatches DISCARD the self-test's return value
(`selfTest(); process.exit(0);` and `if (--self-test) selfTest(); else report()`),
so the sentinel spelling landed in PRs #14479 / #14853 is the fitting form for
each: `SELF_TEST_VERDICT` returned only after the success line, compared at the
dispatch, which refuses anything else with exit 1. Nothing inside either
self-test body changes.
Part of #13798
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
Co-authored-by: Claude <noreply@anthropic.com>1 parent f074616 commit 2cc4610
2 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3794 | 3794 | | |
3795 | 3795 | | |
3796 | 3796 | | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
3797 | 3803 | | |
3798 | 3804 | | |
3799 | 3805 | | |
| |||
5657 | 5663 | | |
5658 | 5664 | | |
5659 | 5665 | | |
| 5666 | + | |
| 5667 | + | |
5660 | 5668 | | |
5661 | 5669 | | |
5662 | 5670 | | |
5663 | | - | |
| 5671 | + | |
| 5672 | + | |
| 5673 | + | |
| 5674 | + | |
| 5675 | + | |
| 5676 | + | |
| 5677 | + | |
| 5678 | + | |
5664 | 5679 | | |
5665 | 5680 | | |
5666 | 5681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1399 | 1405 | | |
1400 | 1406 | | |
1401 | 1407 | | |
| |||
1698 | 1704 | | |
1699 | 1705 | | |
1700 | 1706 | | |
| 1707 | + | |
| 1708 | + | |
1701 | 1709 | | |
1702 | 1710 | | |
1703 | 1711 | | |
1704 | | - | |
1705 | | - | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1706 | 1722 | | |
0 commit comments