From 6cdfb0102393d9b0e576e0f66023612e48b997ee Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:13:51 +0800 Subject: [PATCH] test(reference): give the MCP parity exclusion fixture its required entry kind (#11247) --- .../boundary/mcp/applicationEvidenceMcp.test.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/boundary/mcp/applicationEvidenceMcp.test.ts b/tests/boundary/mcp/applicationEvidenceMcp.test.ts index aad1ae6e3d..e9a1bce2a1 100644 --- a/tests/boundary/mcp/applicationEvidenceMcp.test.ts +++ b/tests/boundary/mcp/applicationEvidenceMcp.test.ts @@ -151,6 +151,13 @@ async function runUnicodeSourceMapComparison( expect(validateOutput(reply.structuredContent)).toBe(true); } +/** A project-ignored exclusion without the pattern that admission requires. */ +const exclusionWithoutPattern = { + path: "vendor/removed.ts", + entry_kind: "file", + reason: "project-ignored", +} as const; + async function runInlineWorkflowScenarios( harness: ApplicationMcpHarness, ): Promise { @@ -247,13 +254,7 @@ async function runInlineWorkflowScenarios( ...SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE.reference, root_sha256: undefined, inventory_state: "partial", - exclusions: [ - { - path: "vendor/removed.ts", - reason: "project-ignored", - pattern: "vendor/", - }, - ], + exclusions: [{ ...exclusionWithoutPattern, pattern: "vendor/" }], }); const argumentsWithExclusion = { ...SOURCE_TO_BUNDLE_COMPARISON_EXAMPLE, @@ -271,7 +272,7 @@ async function runInlineWorkflowScenarios( ...argumentsWithExclusion, reference: { ...referenceWithExclusion, - exclusions: [{ path: "vendor/removed.ts", reason: "project-ignored" }], + exclusions: [exclusionWithoutPattern], }, }; expect(