mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:21:35 +07:00
fix(ci): harden changed extension diff fallback
This commit is contained in:
@@ -4,6 +4,7 @@ import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
detectChangedExtensionIds,
|
||||
listAvailableExtensionIds,
|
||||
listChangedExtensionIds,
|
||||
resolveExtensionTestPlan,
|
||||
} from "../../scripts/test-extension.mjs";
|
||||
|
||||
@@ -79,6 +80,15 @@ describe("scripts/test-extension.mjs", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("can fail safe to all extensions when the base revision is unavailable", () => {
|
||||
const extensionIds = listChangedExtensionIds({
|
||||
base: "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
|
||||
unavailableBaseBehavior: "all",
|
||||
});
|
||||
|
||||
expect(extensionIds).toEqual(listAvailableExtensionIds());
|
||||
});
|
||||
|
||||
it("dry-run still reports a plan for extensions without tests", () => {
|
||||
const plan = readPlan(["copilot-proxy"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user