Commit 960dc1e
committed
docs(rest): the mirrored-fixture census states a property, not a list of three
The census in `src/http-response-test-builder.ts` named three files. Measured
over this package's 187 test files, the population that matches its own stated
property -- builds an `any`-typed mirror and asserts on `res.statusCode` /
`res.body` -- is 76. The list was also wrong about one of the three it did
name: `analytics-dataset-dimension-gate` contains no `makeRes`, because its
fixture is spelled `mockRes`.
Both errors have one cause: the population was enumerated by HELPER NAME, and
the helper name is the one thing about this shape that varies -- only 30 of the
76 spell it `makeRes`. A hand-list keyed on it can only go stale silently, so
replace it with the property, the command that derives it, and a non-zero
control (18 files that DO define a `makeRes` and are correctly excluded, their
double being spy-only or closure-capture with no mirror to read).
The same three-name list was mirrored in `test-typecheck-debt.json`'s authored
`_note`, which regeneration preserves verbatim and so would never have
corrected; fix it there too.
`src/rest.test.ts` holds one fixture of each kind and gets a pointer at the
mirrored one, which is the fixture a reader of that file is likeliest to assume
is already covered because the rest of the file now is.
Comment-only; no behaviour change, no assertion converted.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YFY46JydE1gMxQG1TqBcMZ1 parent a5eccf9 commit 960dc1e
3 files changed
Lines changed: 50 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
86 | 118 | | |
87 | 119 | | |
88 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4109 | 4109 | | |
4110 | 4110 | | |
4111 | 4111 | | |
| 4112 | + | |
| 4113 | + | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
4112 | 4122 | | |
4113 | 4123 | | |
4114 | 4124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
0 commit comments