0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(start-plugin-core): Start compiler oracles without prose, inventories or the JSX stand-in

- S06: client/SSR outputs are checked by what evaluating them loads
  (moduleLoads + expectNotLoaded), never by exact import lists; type-only
  syntax is no load.
- S08: callerRpcId reads serverFnMeta.id whatever other fields it carries.
- S05/S07/sol-10 (H.2): compile errors through the shared diagnostics oracle
  (expectCompileError: API named in the diagnostic's own words, position);
  misplacedServerFnRejection and the returned-builder regex are gone.
- S13/S14/S15/S16/S17: declaration-site goals split (nested no-capture =
  support goals; other positions = works or rejected at the call);
  rejection branches removed from required-support wrappers; capture pin
  accepts a clear capture diagnostic or correct per-instance calls.
- New pin: next to another Start factory, a misplaced createServerFn is
  rejected without a position (handleCreateServerFn.ts:232, SPEC G5).
- S18 (cases with unconditional window reads), S19, S20, S21 (compile-level
  directive pin; real pin in react-start-rsc rsc-start-dev), S26, S29, S33,
  S46 deletions; S38 real middleware row; S41/S42 moved to
  outside-compiler-corpus/compiler-seams.test.ts as internal controls.
- S04: unchanged-input repeatability and per-version agreement.
- S22: tsc against the real declarations (packages/react-start, tsc 7):
  .validator() TS2554, env fns without impl TS2554, destructured server fn
  TS2339 -> labelled malformed-input controls; .handler() type-checks ->
  G5 diagnostics tests (S23/S24 line endings, position and column).
- H.5: jsxToText deleted; evaluated modules link the real React/router.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-19 09:33:01 +02:00
commit c5431ecc37
No known key found for this signature in database
16 changed files with 1605 additions and 1348 deletions