mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(router-generator): pin the second createFileRoute import for a wrapper module (fuzz V2)
A route file that imports createFileRoute from a module of the app (`@/lib/router`) gets a second createFileRoute import from the router package, so the written file no longer parses. The pin runs the real generator on a moved route and asserts that the written file is a valid module (known-bugs.test.ts, "route constructor imports"). Red: "Identifier `createFileRoute` has already been declared". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3a10f18be0
commit
e395052be0
1 changed files with 25 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue