mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(router-generator): route file upkeep may change only what it owns
GEN-05: one helper, expectOnlyOwnedEdits (owned-edits.ts, with controls): exact bytes outside the route id argument, the constructor callee and the router package imports; inside those imports the other bindings keep their imported name, local name and type/value meaning. Replaces withoutImports, which dropped every import (an unrelated import could vanish unnoticed). - GEN-06: the second createFileRoute call becomes an ordinary call (one route per route file). - GEN-07/GEN-09: no semicolon or quote assertions on edits; the id is checked on its parsed value. - GEN-08: the now unused createFileRoute import may stay or go. - GEN-10/GEN-12: the logging test no longer requires a scaffold message or param warnings; it requires the helpers.tsx warning naming the file (diagnostics oracle), plus a real disableLogging check (no info logs). - GEN-28: BOM rows and the BOM pin move to outside-compiler-corpus/bom.test.ts (SPEC 2.1 is BOM-free); CRLF and astral rows stay BOM-free. - GEN-40: the lazy template uses component (tsc: 'staticData' does not exist in type 'LazyRouteOptions'); checked through the real router page. - GEN-42: an id from a variable or an interpolated template may be repaired to the literal or reported naming the file. - Route tree quote check skips literals holding quote characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b91a54f8b3
commit
404f22dd73
6 changed files with 535 additions and 287 deletions
Loading…
Add table
Add a link
Reference in a new issue