diff --git a/examples/basic-app/app/routes.gen.ts b/examples/basic-app/app/routes.gen.ts index 6ec53fbb..86898346 100644 --- a/examples/basic-app/app/routes.gen.ts +++ b/examples/basic-app/app/routes.gen.ts @@ -9,7 +9,6 @@ export interface Routes { "/client-only": Record; "/dashboard": Record; "/hello": Record; - "/html-editing-check": Record; "/island-demo": Record; "/language-tools": Record; "/layout": Record; @@ -33,7 +32,6 @@ export interface RouteNames { "client.only": "/client-only"; "dashboard": "/dashboard"; "hello": "/hello"; - "html.editing.check": "/html-editing-check"; "island.demo": "/island-demo"; "language.tools": "/language-tools"; "layout": "/layout"; @@ -126,7 +124,6 @@ export function route( "client.only": "/client-only", "dashboard": "/dashboard", "hello": "/hello", - "html.editing.check": "/html-editing-check", "island.demo": "/island-demo", "language.tools": "/language-tools", "layout": "/layout", diff --git a/examples/basic-app/app/types/wrnexus.generated.d.ts b/examples/basic-app/app/types/wrnexus.generated.d.ts index afb9e21a..537a1c99 100644 --- a/examples/basic-app/app/types/wrnexus.generated.d.ts +++ b/examples/basic-app/app/types/wrnexus.generated.d.ts @@ -13,7 +13,7 @@ declare namespace WRNexusGenerated { : never; type RealtimeMessage = T extends import("@wrnexus/core").RoomDefinition ? M : unknown; type QueuePayload = T extends import("@wrnexus/queue").JobDefinition ? I : unknown; - type RouteName = "about" | "async.data" | "chat" | "client.only" | "dashboard" | "hello" | "html.editing.check" | "index" | "island.demo" | "language.tools" | "layout" | "login" | "modal" | "navigation" | "partial.static" | "platform.showcase" | "reactive" | "server.actions" | "table" | "test" | "ui"; + type RouteName = "about" | "async.data" | "chat" | "client.only" | "dashboard" | "hello" | "index" | "island.demo" | "language.tools" | "layout" | "login" | "modal" | "navigation" | "partial.static" | "platform.showcase" | "reactive" | "server.actions" | "table" | "test" | "ui"; type ApiRoute = "/api/accounts" | "/api/echo" | "/api/graphql-example" | "/api/hello" | "/api/invite" | "/api/login" | "/api/logout" | "/api/me" | "/api/typed-user" | "/api/users/csr" | "/api/users/ssr" | "/api/webhooks/payment"; type RealtimeRoute = "/realtime/chat" | "/realtime/hello"; type EnvironmentKey = "APP_LABEL" | "DATABASE_URL" | "DEMO_SHARED" | "HOST" | "NODE_ENV" | "PORT" | "SESSION_SECRET" | "UAT_ONLY"; diff --git a/examples/basic-app/app/pages/html-editing-check.wrn b/packages/language-server/test/fixtures/html-editing-check.wrn similarity index 100% rename from examples/basic-app/app/pages/html-editing-check.wrn rename to packages/language-server/test/fixtures/html-editing-check.wrn diff --git a/packages/language-server/test/html-editing-e2e.test.ts b/packages/language-server/test/html-editing-e2e.test.ts index 70e8c424..ad6825c5 100644 --- a/packages/language-server/test/html-editing-e2e.test.ts +++ b/packages/language-server/test/html-editing-e2e.test.ts @@ -5,14 +5,13 @@ import { join } from "node:path"; import { positionAt } from "../src/index.ts"; // End-to-end verification (Task 8): drives the real language server, over -// real LSP stdio framing, against the real scratch page checked in at -// examples/basic-app/app/pages/html-editing-check.wrn. The page's text is -// read from disk rather than duplicated here, so this test breaks if the -// page and the test drift apart. +// real LSP stdio framing, against a realistic WRN page fixture. The page's +// text is read from disk rather than duplicated here, so the fixture remains +// reusable and independently inspectable. const pagePath = join( - fileURLToPath(new URL("../../../", import.meta.url)), - "examples/basic-app/app/pages/html-editing-check.wrn", + fileURLToPath(new URL(".", import.meta.url)), + "fixtures/html-editing-check.wrn", ); const pageText = readFileSync(pagePath, "utf8");