mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test: cover Codex version contracts on dependency bumps (#110958)
This commit is contained in:
committed by
GitHub
parent
5fe8d6a852
commit
0135c6bf89
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user