From 2f6df14f4b3fe40b0f36572b7ee49e2bcfb31159 Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Wed, 4 Nov 2026 20:56:34 +0900 Subject: [PATCH] =?UTF-8?q?test(features):=20=EC=A0=9C=ED=92=88=20?= =?UTF-8?q?=ED=99=95=EC=9E=A5=20typecheck=20=ED=94=BD=EC=8A=A4=EC=B2=98?= =?UTF-8?q?=EA=B0=80=20=EC=83=98=ED=94=8C=20=EC=A0=9C=EA=B1=B0=20=EB=92=A4?= =?UTF-8?q?=EC=97=90=EB=8F=84=20=ED=86=B5=EA=B3=BC=ED=95=9C=EB=8B=A4=20(11?= =?UTF-8?q?03/09-02)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제 test:sample-removal은 참조 기능을 지운 복사본에서 test:unit을 돈다. 그때 product-extension-typecheck 픽스처 기능이 유일한 기능이 되는데, 메시지 catalog가 비어 있어(messages: {}) 메시지 키 타입이 무너져 tsc app이 presentation 파일 수십 곳에서 실패했다. 템플릿 결함이 아니라 픽스처 기능의 모양 문제다. 고른 방법 픽스처 기능에 두 locale의 메시지를 준다. two-feature-install-typecheck 픽스처와 같은 모양이다. 위험·한계 없다고 보는 이유: 테스트 픽스처 문자열만 바뀐다. 검증 - product-extension-typecheck.test.ts 통과(전체 repo). - test:sample-removal 재실행 결과는 브랜치 보고에 적는다. Refs: docs/reviews/2026-11-03-maturity-review/09-app-core.md 09-02 --- tests/unit/product-extension-typecheck.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/unit/product-extension-typecheck.test.ts b/tests/unit/product-extension-typecheck.test.ts index aaff8f7c..c1cf4e04 100644 --- a/tests/unit/product-extension-typecheck.test.ts +++ b/tests/unit/product-extension-typecheck.test.ts @@ -96,7 +96,12 @@ export const FEATURE_MODULE = defineFeatureModule({ contractPackages: Object.freeze([]), }, routes: {}, - messages: {}, + // Both locales: with the sample features removed (test:sample-removal) + // this is the only catalog the message key types come from. + messages: { + "ko-KR": { "notice.title": "공지" }, + "en-US": { "notice.title": "Notice" }, + }, loadRuntime: async () => (await import("./feature-runtime.ts")).FEATURE_RUNTIME, } as const); `;