File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 11import fs from "node:fs/promises" ;
22
3- import { expect } from "@playwright/test" ;
43import tsx from "dedent" ;
54import * 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, $ } ) => {
You can’t perform that action at this time.
0 commit comments