Skip to content

Commit 476d744

Browse files
committed
typegen: fix tests for windows
optional params are denoted with `()` not `?` when using file-based routing
1 parent d11ceff commit 476d744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/typegen-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ test.describe("typegen", () => {
6262
test("repeated param", async () => {
6363
const cwd = await createProject({
6464
"vite.config.ts": viteConfig,
65-
"app/routes/repeated.$id.$id?.$id.tsx": tsx`
66-
import type { Route } from "./+types.repeated.$id.$id?.$id"
65+
"app/routes/repeated.$id.($id).$id.tsx": tsx`
66+
import type { Route } from "./+types.repeated.$id.($id).$id"
6767
6868
function assertType<T>(t: T) {}
6969

0 commit comments

Comments
 (0)