From c52bf54ce3d751eaedaa029d0a16553bb7d8f535 Mon Sep 17 00:00:00 2001 From: gensokyo-dev Date: Sat, 14 Nov 2026 09:26:15 +0000 Subject: [PATCH] test(snapshot): type the CLI detail comparison Refs #7442 Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --- tests/acceptance/analysisSnapshotDiagnostics.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/analysisSnapshotDiagnostics.test.ts b/tests/acceptance/analysisSnapshotDiagnostics.test.ts index 05ba051c7b..b9c8496a72 100644 --- a/tests/acceptance/analysisSnapshotDiagnostics.test.ts +++ b/tests/acceptance/analysisSnapshotDiagnostics.test.ts @@ -65,7 +65,7 @@ cliTest( ); } // MCP adds open-session facts; the snapshot reason must match exactly. - expect(mcpError.details).toMatchObject(cliError.details); + expect(mcpError.details).toMatchObject(cliError.details ?? {}); expect(await readFile(snapshot, "utf8")).toBe(encoded); } expect(