test(reference): give the MCP parity exclusion fixture its required entry kind (#11247)

This commit is contained in:
morluto authored and GitHub committed 2026-11-15 10:13:51 -05:00
1 parent 32a851e048
commit 6cdfb01023
1 file changed
+9 -8
@@ -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<void> {
@@ -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(