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(