From 369d418c7ea9cc2a9490b412df6eaec3ee346dcb Mon Sep 17 00:00:00 2001 From: altair823 Date: Sun, 10 May 2026 04:45:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(v031):=20ImportService.test=20buildExportNo?= =?UTF-8?q?te=20helper=20=EC=97=90=20Cut=20E=20frontmatter=205=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cut E v0.3.0 에서 ExportNote interface 에 status / statusChangedAt / moveReason / dueDate / dueDateEditedByUser 필드 추가했지만 ImportService.test 의 buildExportNote helper 갱신 누락 → composeFrontmatter 가 undefined moveReason 로 formatScalar 호출 시 null !== undefined 분기 통과 후 .includes throw. helper 에 5 필드 default (active / null / null / null / false) 추가. 회귀 fix. --- tests/unit/ImportService.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unit/ImportService.test.ts b/tests/unit/ImportService.test.ts index f401669..ebde396 100644 --- a/tests/unit/ImportService.test.ts +++ b/tests/unit/ImportService.test.ts @@ -34,6 +34,12 @@ function buildExportNote(overrides: Partial = {}): ExportNote { aiGeneratedAt: '2026-04-25T14:23:34.000Z', userIntent: null, intentPromptedAt: null, + // v0.3.0 Cut E — frontmatter round-trip 5 필드 (Cut B status + Cut C dueDate). + status: 'active', + statusChangedAt: null, + moveReason: null, + dueDate: null, + dueDateEditedByUser: false, tags: [{ name: 'pr', source: 'ai' }], media: [], ...overrides