mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:10:52 +00:00
test: avoid whatsapp setup jiti load
This commit is contained in:
@@ -7,8 +7,9 @@ vi.mock("@whiskeysockets/baileys", () => {
|
||||
describe("whatsapp setup entry", () => {
|
||||
it("loads the setup plugin without installing or importing runtime dependencies", async () => {
|
||||
const { default: setupEntry } = await import("./setup-entry.js");
|
||||
const { whatsappSetupPlugin } = await import("./setup-plugin-api.js");
|
||||
|
||||
expect(setupEntry.kind).toBe("bundled-channel-setup-entry");
|
||||
expect(setupEntry.loadSetupPlugin({ installRuntimeDeps: false }).id).toBe("whatsapp");
|
||||
expect(whatsappSetupPlugin.id).toBe("whatsapp");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user