test(features): 제품 확장 typecheck 픽스처가 샘플 제거 뒤에도 통과한다 (1103/09-02)
문제
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
This commit is contained in:
@@ -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);
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user