test(docs): 문서 검사 보고서 타입에 missingPaths 칸을 적는다

문제
직전 커밋(짝 저장소 참조 테스트 범위 축소)이 보고서의 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
This commit is contained in:
DongHyeonka
2026-11-04 23:11:22 +09:00
parent 505a8b0fca
commit 4401ffa1ac
+3 -1
View File
@@ -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 {