Skip to content

Commit 0d0fa51

Browse files
committed
remove checks for exact typegen file locations
since this is an implementation detail
1 parent f52d8af commit 0d0fa51

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

integration/typegen-test.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs from "node:fs/promises";
22

3-
import { expect } from "@playwright/test";
43
import tsx from "dedent";
54
import * as Path from "pathe";
65

@@ -337,7 +336,7 @@ test.describe("typegen", () => {
337336
await $("pnpm typecheck");
338337
});
339338

340-
test("routes outside app dir", async ({ cwd, edit, $ }) => {
339+
test("routes outside app dir", async ({ edit, $ }) => {
341340
await edit({
342341
"react-router.config.ts": tsx`
343342
export default {
@@ -374,14 +373,6 @@ test.describe("typegen", () => {
374373
`,
375374
});
376375
await $("pnpm typecheck");
377-
378-
// Verify that the types file was generated in the correct location
379-
const annotationPath = Path.join(
380-
cwd,
381-
".react-router/types/app/pages/+types/product.ts",
382-
);
383-
const annotation = await fs.readFile(annotationPath, "utf8");
384-
expect(annotation).toContain("export namespace Route");
385376
});
386377

387378
test("matches", async ({ edit, $ }) => {

0 commit comments

Comments
 (0)