test(release): align pack checks with externalized plugins

This commit is contained in:
Peter Steinberger
2026-05-02 22:59:55 +01:00
parent e5f8c5195f
commit 15dc7d3f57
2 changed files with 16 additions and 15 deletions

View File

@@ -496,15 +496,12 @@ describe("collectMissingPackPaths", () => {
"scripts/lib/package-dist-imports.mjs",
"scripts/postinstall-bundled-plugins.mjs",
"dist/task-registry-control.runtime.js",
bundledDistPluginFile("acpx", "runtime-api.js"),
bundledDistPluginFile("acpx", "openclaw.plugin.json"),
bundledDistPluginFile("acpx", "package.json"),
bundledDistPluginFile("googlechat", "runtime-api.js"),
bundledDistPluginFile("googlechat", "openclaw.plugin.json"),
bundledDistPluginFile("googlechat", "package.json"),
bundledDistPluginFile("line", "runtime-api.js"),
bundledDistPluginFile("line", "openclaw.plugin.json"),
bundledDistPluginFile("line", "package.json"),
bundledDistPluginFile("slack", "runtime-api.js"),
bundledDistPluginFile("slack", "openclaw.plugin.json"),
bundledDistPluginFile("slack", "package.json"),
bundledDistPluginFile("telegram", "runtime-api.js"),
bundledDistPluginFile("telegram", "openclaw.plugin.json"),
bundledDistPluginFile("telegram", "package.json"),
]),
);
});
@@ -540,9 +537,8 @@ describe("collectMissingPackPaths", () => {
it("requires bundled plugin runtime sidecars that dynamic plugin boundaries resolve at runtime", () => {
expect(requiredBundledPluginPackPaths).toEqual(
expect.arrayContaining([
bundledDistPluginFile("acpx", "runtime-api.js"),
bundledDistPluginFile("googlechat", "runtime-api.js"),
bundledDistPluginFile("line", "runtime-api.js"),
bundledDistPluginFile("slack", "runtime-api.js"),
bundledDistPluginFile("telegram", "runtime-api.js"),
]),
);
});

View File

@@ -98,9 +98,14 @@ describe("bundled plugin build entries", () => {
expect(artifacts.some((artifact) => artifact.startsWith("dist/extensions/bluebubbles/"))).toBe(
false,
);
expect(artifacts).toContain("dist/extensions/acpx/index.js");
expect(artifacts).toContain("dist/extensions/googlechat/index.js");
expect(artifacts).toContain("dist/extensions/line/index.js");
for (const pluginId of ["acpx", "googlechat", "line"]) {
expect(
Object.keys(entries).some((entry) => entry.startsWith(`extensions/${pluginId}/`)),
).toBe(true);
expect(
artifacts.some((artifact) => artifact.startsWith(`dist/extensions/${pluginId}/`)),
).toBe(false);
}
expect(Object.keys(entries).some((entry) => entry.startsWith("extensions/qqbot/"))).toBe(false);
expect(artifacts.some((artifact) => artifact.startsWith("dist/extensions/qqbot/"))).toBe(false);
});