mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:01:01 +00:00
perf: trim feishu extension tests
This commit is contained in:
@@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user