Commit 951b025
build(trigger-record-change): graduate the package out of the TEST_DEBT ledger (#11489)
`check:type-check-debt --re-measure` reported TEST_DEBT 9 against a measured 0
for `@objectstack/trigger-record-change`. The 0 re-derived on current main
(7f30b6b) and holds, so this is a graduation rather than a ceiling lowering.
The gate's graduation message offers two remedies as interchangeable. Neither
description fitted this package, and both halves were measured before choosing:
* "add a `typecheck` script" — it already had one (`tsc --noEmit`). The hole
was TESTS_COVERED (src checks, tests hidden by `**/*.test.ts` in the build
tsconfig), not COVERED.
* "drop the test exclusion" — resolves exactly the 10-file program the ledger
scored at 0 (`tsc --showConfig`) and leaves `dist/` byte-identical, but the
7 re-admitted tests import @objectstack/driver-sql, /formula, /objectql and
/service-automation, which the build config's program never held:
`check:type-source-resolution` goes exit 0 -> exit 1 naming all four,
against a shrink-only registry whose own message rules that widening the
entry is not the fix.
So it takes the sibling-config route the repo already uses for `packages/spec`,
`client`, `metadata-core` and `metadata-fs`: a `tsconfig.test.json` named by the
`typecheck` script, putting the same 10 files in front of tsc while the build
config — the only one that gate reads — is untouched. The ledger entry is
deleted in the same commit, as the gate's structural half requires.
Claude-Session: https://claude.ai/code/session_015ahemw8RcTgqtxrj15PEZx
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5691b07 commit 951b025
3 files changed
Lines changed: 97 additions & 2 deletions
File tree
- packages/triggers/trigger-record-change
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 74 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
709 | 731 | | |
710 | 732 | | |
711 | 733 | | |
| |||
952 | 974 | | |
953 | 975 | | |
954 | 976 | | |
955 | | - | |
956 | 977 | | |
957 | 978 | | |
958 | 979 | | |
| |||
0 commit comments