# X_TEST_TYPECHECK_REGRESSED

## Means

a package's own tests carry more `tsc` errors than the ratchet pins

## Typical cause

every package `tsconfig.json` excludes `src/**/*.test.ts`, so `bun run typecheck` reads none of them and the gate was green over all **984** of them (`find packages -path '*/src/*' -name '*.test.ts*' -not -path '*/dist/*' \| wc -l`, `As of 2026-08`). `tsconfig.tests.json` is the program that compiles them, `noEmit`. The count may only fall

## Fix

fix the diagnostic the finding names — `bun run scripts/test-typecheck-gate.ts --json` prints every one — or raise that package's entry in `scripts/lib/test-typecheck-pins.ts` deliberately, which is a decision and not a default

[CLI and verify](/error-codes#cli-and-verify)
