diff --git a/scripts/test-projects.test-support.mjs b/scripts/test-projects.test-support.mjs index 459bdd6636a1..a54ad1beb3f0 100644 --- a/scripts/test-projects.test-support.mjs +++ b/scripts/test-projects.test-support.mjs @@ -2281,8 +2281,14 @@ const TEST_HELPER_NORMALIZE_TEXT_TARGETS = [ ]; const HAPPY_PATH_PROMPT_SNAPSHOT_HELPER_TEST_TARGETS = ["test/scripts/prompt-snapshots.test.ts"]; const APPCAST_TEST_TARGETS = ["test/appcast.test.ts", "test/scripts/make-appcast.test.ts"]; +const CODEX_VERSION_CONTRACT_TEST_TARGETS = [ + "extensions/codex/src/manifest.test.ts", + "extensions/openai/openai-provider.test.ts", +]; const SOURCE_TEST_TARGETS = new Map([ ...PRECISE_SOURCE_TEST_TARGETS, + ["extensions/codex/package.json", CODEX_VERSION_CONTRACT_TEST_TARGETS], + ["extensions/codex/src/app-server/version.ts", CODEX_VERSION_CONTRACT_TEST_TARGETS], ["src/test-utils/openclaw-test-state.ts", ["src/test-utils/openclaw-test-state.test.ts"]], [ "src/channels/plugins/contracts/test-helpers/manifest.ts", diff --git a/test/scripts/test-projects.test.ts b/test/scripts/test-projects.test.ts index d9078baa2b13..2a28da8105b0 100644 --- a/test/scripts/test-projects.test.ts +++ b/test/scripts/test-projects.test.ts @@ -272,6 +272,19 @@ describe("scripts/test-projects changed-target routing", () => { }); }); + it.each(["extensions/codex/package.json", "extensions/codex/src/app-server/version.ts"])( + "routes Codex version changes through cross-plugin contract tests for %s", + (changedPath) => { + expect(resolveChangedTestTargetPlan([changedPath])).toEqual({ + mode: "targets", + targets: [ + "extensions/codex/src/manifest.test.ts", + "extensions/openai/openai-provider.test.ts", + ], + }); + }, + ); + it("routes release wrapper changes through their owner tests", () => { expect(resolveChangedTestTargetPlan(["scripts/apple-release-source-check.sh"])).toEqual({ mode: "targets",