From 152b9856eb1bf4723f3fbd5b3fe2e7556b97e318 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 02:10:15 +0100 Subject: [PATCH] test(ci): update support boundary expectations --- scripts/test-projects.test-support.mjs | 8 ++++++++ test/scripts/test-projects.test.ts | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/scripts/test-projects.test-support.mjs b/scripts/test-projects.test-support.mjs index 2d5c17f6492..96ab1c335d7 100644 --- a/scripts/test-projects.test-support.mjs +++ b/scripts/test-projects.test-support.mjs @@ -298,6 +298,14 @@ const SOURCE_TEST_TARGETS = new Map([ ["src/memory-host-sdk/host/embeddings.test.ts"], ], ["src/memory-host-sdk/host/embeddings.ts", ["src/memory-host-sdk/host/embeddings.test.ts"]], + [ + "src/plugin-sdk/test-helpers/directory-ids.ts", + [ + "extensions/discord/src/directory-contract.test.ts", + "extensions/slack/src/directory-contract.test.ts", + "extensions/telegram/src/directory-contract.test.ts", + ], + ], [ "src/auto-reply/reply/dispatch-from-config.ts", ["src/auto-reply/reply/dispatch-from-config.test.ts"], diff --git a/test/scripts/test-projects.test.ts b/test/scripts/test-projects.test.ts index cf6444fd3a7..f4fe3b154fc 100644 --- a/test/scripts/test-projects.test.ts +++ b/test/scripts/test-projects.test.ts @@ -251,6 +251,17 @@ describe("scripts/test-projects changed-target routing", () => { expect(plan.targets).not.toContain("extensions/discord/src/directory-contract.test.ts"); }); + it("routes channel SDK helper edits through the tests that import them", () => { + expect(resolveChangedTestTargetPlan(["src/plugin-sdk/test-helpers/directory-ids.ts"])).toEqual({ + mode: "targets", + targets: [ + "extensions/discord/src/directory-contract.test.ts", + "extensions/slack/src/directory-contract.test.ts", + "extensions/telegram/src/directory-contract.test.ts", + ], + }); + }); + it("routes channel contract helper edits through contract shards", () => { const plan = resolveChangedTestTargetPlan([ "src/channels/plugins/contracts/test-helpers/registry-backed-contract-shards.ts",