0
Fork 0
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:
Sheraff 2026-10-17 18:20:56 +02:00
commit e395052be0
No known key found for this signature in database