From e47a0ab23d1c5f3f173e1b934307f67e7c76a50d Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Sun, 8 Nov 2026 14:37:40 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=EB=9D=BC=EC=9A=B0=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=99=80=20=EC=83=81=EA=B4=80=EC=97=86=EC=9D=B4=20?= =?UTF-8?q?=EB=9D=BC=EC=9A=B0=ED=8A=B8=20=EB=9F=B0=ED=83=80=EC=9E=84=20?= =?UTF-8?q?=EC=9D=8C=EC=84=B1=20fixture=20=EC=A7=84=EB=8B=A8=EC=9D=84=20?= =?UTF-8?q?=EA=B3=A0=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 샘플 라우트를 지워 라우트가 3개가 되자 FE-GATE-003의 route-runtime 음성 fixture가 TS2740 대신 TS2739를 내 기대 진단과 어긋났다. tsc는 빠진 키가 많으면 TS2740, 적으면 TS2739를 낸다. fixture가 정확히 한 라우트만 빼도록 바꿔 어느 라우트 수에서나 TS2741이 나오게 하고 기대 진단을 맞췄다. --- config/ci/gates.json | 2 +- tests/fixtures/typecheck/invalid-route-runtime.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/ci/gates.json b/config/ci/gates.json index bb90e7c2..ab728fce 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 9fa3f9de..bc8ec5e0 100644 --- a/tests/fixtures/typecheck/invalid-route-runtime.ts +++ b/tests/fixtures/typecheck/invalid-route-runtime.ts @@ -2,9 +2,12 @@ import { ROUTE_RUNTIME_CONTRACT } from "../../../src/features/installed-feature- type RouteId = keyof typeof ROUTE_RUNTIME_CONTRACT; -export const missingRuntime = { - APP_HOME: true, -} satisfies Record; +// 2026-11-07. Exactly one route is left out. tsc names a short list of +// missing keys (TS2739) and a long one with "and N more" (TS2740), so an +// object that kept one route changed its diagnostic when the template's +// sample routes were deleted. One missing key is TS2741 at any route count. +declare const withoutHome: Omit, "APP_HOME">; +export const missingRuntime: Record = withoutHome; export const orphanRuntime = { ...Object.fromEntries(