From 4401ffa1ac524ee0962b01a3cf4c67234a13335f Mon Sep 17 00:00:00 2001 From: DongHyeonka Date: Wed, 4 Nov 2026 23:11:22 +0900 Subject: [PATCH] =?UTF-8?q?test(docs):=20=EB=AC=B8=EC=84=9C=20=EA=B2=80?= =?UTF-8?q?=EC=82=AC=20=EB=B3=B4=EA=B3=A0=EC=84=9C=20=ED=83=80=EC=9E=85?= =?UTF-8?q?=EC=97=90=20missingPaths=20=EC=B9=B8=EC=9D=84=20=EC=A0=81?= =?UTF-8?q?=EB=8A=94=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제 직전 커밋(짝 저장소 참조 테스트 범위 축소)이 보고서의 missingPaths를 읽지만, 테스트가 JSON을 읽을 때 쓰는 타입에 그 칸이 없어 check:types가 TS2339로 실패한다. vitest는 타입을 보지 않아 테스트는 통과했다. 고른 방법 - 보고서 타입에 missingPaths?: string[]를 더한다. 검증 - check:types 통과, documentation-readiness 테스트 19건 통과, eslint 통과. Refs: docs/reviews/2026-11-03-maturity-review/12-guardrails-ci.md 12-05 --- tests/unit/documentation-readiness.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/documentation-readiness.test.ts b/tests/unit/documentation-readiness.test.ts index 18c0155c..1163684a 100644 --- a/tests/unit/documentation-readiness.test.ts +++ b/tests/unit/documentation-readiness.test.ts @@ -37,7 +37,9 @@ async function verify( encoding: "utf8", }); const report = await readFile(path.join(root, "artifacts/quality/documentation-review.json"), "utf8") - .then((json) => JSON.parse(json) as { documentReferences: { path: string; unverifiedLinks?: string[] }[] }) + .then((json) => JSON.parse(json) as { + documentReferences: { path: string; missingPaths?: string[]; unverifiedLinks?: string[] }[]; + }) .catch(() => null); return { ...result, report }; } finally {