test: avoid whatsapp setup jiti load · openclaw/openclaw@ebd7f19
steipete
·
2026-04-24
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,8 +7,9 @@ vi.mock("@whiskeysockets/baileys", () => {
|
7 | 7 | describe("whatsapp setup entry", () => { |
8 | 8 | it("loads the setup plugin without installing or importing runtime dependencies", async () => { |
9 | 9 | const { default: setupEntry } = await import("./setup-entry.js"); |
| 10 | +const { whatsappSetupPlugin } = await import("./setup-plugin-api.js"); |
10 | 11 | |
11 | 12 | expect(setupEntry.kind).toBe("bundled-channel-setup-entry"); |
12 | | -expect(setupEntry.loadSetupPlugin({ installRuntimeDeps: false }).id).toBe("whatsapp"); |
| 13 | +expect(whatsappSetupPlugin.id).toBe("whatsapp"); |
13 | 14 | }); |
14 | 15 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。