Repository navigation
Commit 342ca3d
committed
ci(console): put vitest.config.ts in a tsc program and drop the ghost include entry
`apps/console/vitest.config.ts` was in ZERO tsc programs. CI runs
`turbo run type-check` — per package — and neither console tsconfig
reached the file: `tsconfig.json` includes only `src`/`dev`/
`objectstack.config.ts`, and `tsconfig.node.json` listed only
`vite.config.ts` and a `vitest.setup.ts` that does not exist.
Add `vitest.config.ts` to `tsconfig.node.json`'s include. Its import of
`../../vitest.config.mts` has to be listed too — a composite project must
list every file in its program (TS6307) — which incidentally gives the
root Vitest config the gate it also lacked.
Drop the `vitest.setup.ts` entry rather than repoint it. A literal,
glob-less include entry matching nothing is silently ignored by tsc, so
it read as coverage that was never there. The setup file `vitest.config.ts`
really uses (repo-root `vitest.setup.dom.tsx`) is passed to Vitest as a
runtime path string, never imported, so this program has no type edge to
it; naming it here was measured red (one TS6307 + four TS2882).
No flag changes were needed: `allowImportingTsExtensions` +
`emitDeclarationOnly` from #3475 already cover the `.ts`/`.mts` spellings.
Refs #3476
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt1 parent f995a45 commit 342ca3d
1 file changed
Lines changed: 38 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 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 | + | |
39 | 75 | | |
0 commit comments