Commit 496825f
The file's `type _X = Assert<Equal<A, B>>` lines were never read by any
compiler. `packages/app-shell/tsconfig.json` is the BUILD config and excludes
`**/*.test.ts`; CI's only type gate drives that config (`pnpm type-check` ->
turbo -> per-package `tsc --noEmit`), eslint is not type-aware, and vitest
erases types before it runs. A provably-false `Assert<Equal<1, 2>>` appended to
the file passed `pnpm type-check` at exit 0 — the same "declared != enforced"
landmine the file's own header cites #3009 for.
Adds `packages/app-shell/tsconfig.typetests.json`: an emit-free project with an
EXPLICIT include list (not a glob), chained from the package's `type-check`
script so it runs in the existing CI `Type Check` job. The list is explicit
because app-shell's wider test tree still has a pre-existing error backlog,
already declared as TEST_DEBT — a glob would sweep that in and the project would
get deleted rather than fixed. That backlog stays tracked in #3181.
`scripts/check-type-check-coverage.mjs` grows the matching ratchet: a
`tsconfig.typetests.json` that `type-check` does not chain, that emits, or that
includes no test file is now a hard failure, so this gate cannot go quiet the
same way the assertions did.
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f07d5c7 commit 496825f
4 files changed
Lines changed: 133 additions & 3 deletions
File tree
- packages/app-shell
- src/__tests__
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
| |||
193 | 211 | | |
194 | 212 | | |
195 | 213 | | |
196 | | - | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
197 | 219 | | |
198 | 220 | | |
199 | 221 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
161 | 171 | | |
162 | 172 | | |
163 | 173 | | |
| |||
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
179 | 195 | | |
180 | 196 | | |
181 | 197 | | |
| |||
324 | 340 | | |
325 | 341 | | |
326 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
327 | 384 | | |
328 | 385 | | |
329 | 386 | | |
| |||
363 | 420 | | |
364 | 421 | | |
365 | 422 | | |
| 423 | + | |
366 | 424 | | |
367 | 425 | | |
368 | 426 | | |
| |||
373 | 431 | | |
374 | 432 | | |
375 | 433 | | |
376 | | - | |
| 434 | + | |
| 435 | + | |
377 | 436 | | |
378 | 437 | | |
379 | 438 | | |
| |||
0 commit comments