perf: trim feishu extension tests

This commit is contained in:
Peter Steinberger
2026-04-23 19:56:33 +01:00
parent cad102c3ca
commit efd5eb231a
2 changed files with 3 additions and 2 deletions

View File

@@ -5,10 +5,10 @@ vi.mock("@larksuiteoapi/node-sdk", () => {
}); });
describe("feishu setup entry", () => { describe("feishu setup entry", () => {
it("loads the setup plugin without importing Feishu runtime dependencies", async () => { it("declares the setup entry without importing Feishu runtime dependencies", async () => {
const { default: setupEntry } = await import("./setup-entry.js"); const { default: setupEntry } = await import("./setup-entry.js");
expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); expect(setupEntry.kind).toBe("bundled-channel-setup-entry");
expect(setupEntry.loadSetupPlugin({ installRuntimeDeps: false })?.id).toBe("feishu"); expect(typeof setupEntry.loadSetupPlugin).toBe("function");
}); });
}); });

View File

@@ -17,6 +17,7 @@ export function createExtensionFeishuVitestConfig(
{ {
dir: "extensions", dir: "extensions",
env, env,
includeOpenClawRuntimeSetup: false,
name: "extension-feishu", name: "extension-feishu",
passWithNoTests: true, passWithNoTests: true,
setupFiles: ["test/setup.extensions.ts"], setupFiles: ["test/setup.extensions.ts"],