From ad1c3603220578e07ad2e326f5bdb634c8342cf5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 09:36:59 +0100 Subject: [PATCH] test: tighten plugin gauntlet matrix assertions --- test/scripts/plugin-gateway-gauntlet.test.ts | 22 +++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/test/scripts/plugin-gateway-gauntlet.test.ts b/test/scripts/plugin-gateway-gauntlet.test.ts index 6723e0b524d..9c1c9e8fa57 100644 --- a/test/scripts/plugin-gateway-gauntlet.test.ts +++ b/test/scripts/plugin-gateway-gauntlet.test.ts @@ -60,17 +60,23 @@ describe("plugin gateway gauntlet helpers", () => { const matrix = discoverBundledPluginManifests(repoRoot); expect(matrix.map((entry) => entry.id)).toEqual(["alpha", "beta"]); - expect(matrix[0]).toMatchObject({ - id: "alpha", - dir: path.join("extensions", "alpha"), - manifestPath: path.join("extensions", "alpha", "openclaw.plugin.json"), - enabledByDefault: true, - providers: ["openai"], + expect(matrix[0]).toEqual({ + activation: {}, authMethods: ["oauth"], - onboardingScopes: ["models"], + channels: [], + cliCommandAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }], + commandAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }], + dir: path.join("extensions", "alpha"), + enabledByDefault: true, hasConfigSchema: true, hasRequiredConfigFields: true, - cliCommandAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }], + id: "alpha", + manifestPath: path.join("extensions", "alpha", "openclaw.plugin.json"), + name: "alpha", + onboardingScopes: ["models"], + providers: ["openai"], + runtimeSlashAliases: [{ name: "alpha", kind: "runtime-slash", cliCommand: "plugins" }], + skills: [], }); expect(matrix[1].runtimeSlashAliases).toEqual([ { name: "dreaming", kind: "runtime-slash", cliCommand: null },