diff --git a/extensions/slack/src/monitor/provider.auth-test-token.test.ts b/extensions/slack/src/monitor/provider.auth-test-token.test.ts index 311dfc101551..a04ffd4cbfb4 100644 --- a/extensions/slack/src/monitor/provider.auth-test-token.test.ts +++ b/extensions/slack/src/monitor/provider.auth-test-token.test.ts @@ -321,7 +321,9 @@ describe("auth.test boot call", () => { dmPolicy: "disabled", groupPolicy: "open", slashCommand: { enabled: true, name: "openclaw" }, - channels: { C12345678: { allow: true, requireMention: true } }, + channels: { + "team:TWORKSPACE:channel:C12345678": { allow: true, requireMention: true }, + }, }, }, }); @@ -886,7 +888,9 @@ describe("connected identity health", () => { slack: { dmPolicy: "disabled", groupPolicy: "open", - channels: { C12345678: { allow: true, requireMention: true } }, + channels: { + "team:TWORKSPACE:channel:C12345678": { allow: true, requireMention: true }, + }, }, }, }); diff --git a/scripts/test-projects.test-support.mts b/scripts/test-projects.test-support.mts index f3959c1d3d36..2b42a7264069 100644 --- a/scripts/test-projects.test-support.mts +++ b/scripts/test-projects.test-support.mts @@ -542,6 +542,13 @@ const PRECISE_SOURCE_TEST_TARGETS = new Map([ "src/plugins/contracts/tts.contract.test.ts", ], ], + [ + "extensions/slack/src/monitor/enterprise-install.ts", + [ + "extensions/slack/src/monitor/enterprise-install.test.ts", + "extensions/slack/src/monitor/provider.auth-test-token.test.ts", + ], + ], ]); const DOCS_CONFIG_EXAMPLES_TEST_TARGET = "src/config/docs-config-examples.test.ts"; const RUNTIME_SIDECAR_BASELINE_OWNER_TEST_TARGETS = ["src/plugins/bundled-plugin-metadata.test.ts"]; diff --git a/test/scripts/test-projects.test.ts b/test/scripts/test-projects.test.ts index d1366894e5c2..9cdc27ba4df2 100644 --- a/test/scripts/test-projects.test.ts +++ b/test/scripts/test-projects.test.ts @@ -1932,6 +1932,16 @@ describe("scripts/test-projects changed-target routing", () => { ]); }); + it("routes Slack enterprise install changes through both owning tests", () => { + expectChangedTargets( + ["extensions/slack/src/monitor/enterprise-install.ts"], + [ + "extensions/slack/src/monitor/enterprise-install.test.ts", + "extensions/slack/src/monitor/provider.auth-test-token.test.ts", + ], + ); + }); + it("keeps unknown root surfaces cheap by default", () => { expect( resolveChangedTargetArgs(["--changed", "origin/main"], process.cwd(), () => [