Commit efe6a7a
committed
fix(scripts): make the last two self-tests prove they reached their verdict
`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
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk1 parent 97a2263 commit efe6a7a
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 | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
1355 | 1361 | | |
1356 | 1362 | | |
1357 | 1363 | | |
| |||
1654 | 1660 | | |
1655 | 1661 | | |
1656 | 1662 | | |
| 1663 | + | |
| 1664 | + | |
1657 | 1665 | | |
1658 | 1666 | | |
1659 | 1667 | | |
1660 | | - | |
1661 | | - | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1662 | 1678 | | |
0 commit comments