Commit 220467e
docs(devx): mark check-type-check-coverage.mjs's global-setup example historical (#8383)
`scripts/check-type-check-coverage.mjs` illustrates "widen a hidden test
layer's include one file at a time" with `@objectstack/example-showcase`'s
handling of `e2e/global-setup.ts`. PR #8178 (#8062) made both concrete claims
stale: the package's tsconfig now takes the wholesale `e2e/**/*` glob
directly (not the narrow `e2e/**/*.spec.ts` this file still described), and
the 6 errors the narrow glob avoided are fixed at their source rather than
excluded, so `global-setup.ts` is now read by the program and type-checks
clean.
Per the #8189 triage ruling (direction 2): keep the worked example, mark it
historical at both sites (`:507` TEST_DEBT preamble, `:1705`
`measureTestDebt()` docblock — the two are two halves of one worked example
and move together), naming #8062 / PR #8178 as what changed. The general
lesson survives unchanged: a wholesale glob can bill a hidden test layer for
a non-test file it never asked to cover, so add hidden layers one file at a
time and measure each.
Prose-only change inside existing comments; zero behavior change.
Fixes #8189
Claude-Session: https://claude.ai/code/session_01Jqe56GnYFddggeAyfkZFVz
Co-authored-by: Claude <noreply@anthropic.com>1 parent ebb14ec commit 220467e
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
510 | 518 | | |
511 | 519 | | |
512 | 520 | | |
| |||
1705 | 1713 | | |
1706 | 1714 | | |
1707 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1708 | 1723 | | |
1709 | 1724 | | |
1710 | 1725 | | |
| |||
0 commit comments