mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:40:44 +00:00
fix(test): align plugin gauntlet with built runtime
This commit is contained in:
@@ -53,8 +53,8 @@ describe("plugin gateway gauntlet helpers", () => {
|
||||
);
|
||||
await writeManifest(
|
||||
"beta",
|
||||
"openclaw.plugin.json5",
|
||||
`{ id: "beta", commandAliases: ["dreaming"], onboardingScopes: ["memory"] }`,
|
||||
"openclaw.plugin.json",
|
||||
JSON.stringify({ id: "beta", commandAliases: ["dreaming"], onboardingScopes: ["memory"] }),
|
||||
);
|
||||
|
||||
const matrix = discoverBundledPluginManifests(repoRoot);
|
||||
@@ -77,6 +77,15 @@ describe("plugin gateway gauntlet helpers", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("skips source-only plugin dirs that are excluded from the built runtime", async () => {
|
||||
await writeManifest("qqbot", "openclaw.plugin.json", JSON.stringify({ id: "qqbot" }));
|
||||
await writeManifest("telegram", "openclaw.plugin.json", JSON.stringify({ id: "telegram" }));
|
||||
|
||||
const matrix = discoverBundledPluginManifests(repoRoot);
|
||||
|
||||
expect(matrix.map((entry) => entry.id)).toEqual(["telegram"]);
|
||||
});
|
||||
|
||||
it("selects plugin shards after explicit id filtering", () => {
|
||||
const entries = ["a", "b", "c", "d"].map((id) => ({ id }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user