chore: complete HTML editing verification
This commit is contained in:
@@ -9,7 +9,6 @@ export interface Routes {
|
|||||||
"/client-only": Record<string, never>;
|
"/client-only": Record<string, never>;
|
||||||
"/dashboard": Record<string, never>;
|
"/dashboard": Record<string, never>;
|
||||||
"/hello": Record<string, never>;
|
"/hello": Record<string, never>;
|
||||||
"/html-editing-check": Record<string, never>;
|
|
||||||
"/island-demo": Record<string, never>;
|
"/island-demo": Record<string, never>;
|
||||||
"/language-tools": Record<string, never>;
|
"/language-tools": Record<string, never>;
|
||||||
"/layout": Record<string, never>;
|
"/layout": Record<string, never>;
|
||||||
@@ -33,7 +32,6 @@ export interface RouteNames {
|
|||||||
"client.only": "/client-only";
|
"client.only": "/client-only";
|
||||||
"dashboard": "/dashboard";
|
"dashboard": "/dashboard";
|
||||||
"hello": "/hello";
|
"hello": "/hello";
|
||||||
"html.editing.check": "/html-editing-check";
|
|
||||||
"island.demo": "/island-demo";
|
"island.demo": "/island-demo";
|
||||||
"language.tools": "/language-tools";
|
"language.tools": "/language-tools";
|
||||||
"layout": "/layout";
|
"layout": "/layout";
|
||||||
@@ -126,7 +124,6 @@ export function route<N extends RouteName>(
|
|||||||
"client.only": "/client-only",
|
"client.only": "/client-only",
|
||||||
"dashboard": "/dashboard",
|
"dashboard": "/dashboard",
|
||||||
"hello": "/hello",
|
"hello": "/hello",
|
||||||
"html.editing.check": "/html-editing-check",
|
|
||||||
"island.demo": "/island-demo",
|
"island.demo": "/island-demo",
|
||||||
"language.tools": "/language-tools",
|
"language.tools": "/language-tools",
|
||||||
"layout": "/layout",
|
"layout": "/layout",
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ declare namespace WRNexusGenerated {
|
|||||||
: never;
|
: never;
|
||||||
type RealtimeMessage<T> = T extends import("@wrnexus/core").RoomDefinition<any, infer M> ? M : unknown;
|
type RealtimeMessage<T> = T extends import("@wrnexus/core").RoomDefinition<any, infer M> ? M : unknown;
|
||||||
type QueuePayload<T> = T extends import("@wrnexus/queue").JobDefinition<infer I> ? I : unknown;
|
type QueuePayload<T> = T extends import("@wrnexus/queue").JobDefinition<infer I> ? 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 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 RealtimeRoute = "/realtime/chat" | "/realtime/hello";
|
||||||
type EnvironmentKey = "APP_LABEL" | "DATABASE_URL" | "DEMO_SHARED" | "HOST" | "NODE_ENV" | "PORT" | "SESSION_SECRET" | "UAT_ONLY";
|
type EnvironmentKey = "APP_LABEL" | "DATABASE_URL" | "DEMO_SHARED" | "HOST" | "NODE_ENV" | "PORT" | "SESSION_SECRET" | "UAT_ONLY";
|
||||||
|
|||||||
@@ -5,14 +5,13 @@ import { join } from "node:path";
|
|||||||
import { positionAt } from "../src/index.ts";
|
import { positionAt } from "../src/index.ts";
|
||||||
|
|
||||||
// End-to-end verification (Task 8): drives the real language server, over
|
// End-to-end verification (Task 8): drives the real language server, over
|
||||||
// real LSP stdio framing, against the real scratch page checked in at
|
// real LSP stdio framing, against a realistic WRN page fixture. The page's
|
||||||
// examples/basic-app/app/pages/html-editing-check.wrn. The page's text is
|
// text is read from disk rather than duplicated here, so the fixture remains
|
||||||
// read from disk rather than duplicated here, so this test breaks if the
|
// reusable and independently inspectable.
|
||||||
// page and the test drift apart.
|
|
||||||
|
|
||||||
const pagePath = join(
|
const pagePath = join(
|
||||||
fileURLToPath(new URL("../../../", import.meta.url)),
|
fileURLToPath(new URL(".", import.meta.url)),
|
||||||
"examples/basic-app/app/pages/html-editing-check.wrn",
|
"fixtures/html-editing-check.wrn",
|
||||||
);
|
);
|
||||||
const pageText = readFileSync(pagePath, "utf8");
|
const pageText = readFileSync(pagePath, "utf8");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user