diff --git a/config/ci/gates.json b/config/ci/gates.json index 6b47221..61bbb81 100644 --- a/config/ci/gates.json +++ b/config/ci/gates.json @@ -144,7 +144,7 @@ "script": "check:types:fixture:route-runtime", "expect": "fail", "expectedExitCode": 1, - "expectedDiagnosticId": "error TS2740:" + "expectedDiagnosticId": "error TS2741:" }, { "id": "check-types-fixture-page-action", diff --git a/tests/fixtures/typecheck/invalid-route-runtime.ts b/tests/fixtures/typecheck/invalid-route-runtime.ts index 9fa3f9d..cfd12b0 100644 --- a/tests/fixtures/typecheck/invalid-route-runtime.ts +++ b/tests/fixtures/typecheck/invalid-route-runtime.ts @@ -2,9 +2,13 @@ import { ROUTE_RUNTIME_CONTRACT } from "../../../src/features/installed-feature- type RouteId = keyof typeof ROUTE_RUNTIME_CONTRACT; -export const missingRuntime = { - APP_HOME: true, -} satisfies Record; +// Exactly one route is left out, as the template does since e47a0ab2 (2026-11-07): +// one missing key is TS2741 at any route count, where a short or long list of +// missing keys is TS2739 or TS2740. The left-out route must exist here: this +// product has no APP_HOME, and the template's literal { APP_HOME: true } failed +// as an unknown property (TS2353) instead of the missing-runtime error. +declare const withoutHome: Omit, "TECH_LOG_HOME">; +export const missingRuntime: Record = withoutHome; export const orphanRuntime = { ...Object.fromEntries(