mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 02:30:21 +00:00
refactor(plugin-sdk): genericize web channel runtime seams
This commit is contained in:
@@ -21,9 +21,11 @@ const sendFns = vi.hoisted(() => ({
|
||||
|
||||
const whatsappBoundaryLoads = vi.hoisted(() => vi.fn());
|
||||
|
||||
vi.mock("../plugins/runtime/runtime-whatsapp-boundary.js", async (importOriginal) => {
|
||||
vi.mock("../plugins/runtime/runtime-web-channel-boundary.js", async (importOriginal) => {
|
||||
whatsappBoundaryLoads();
|
||||
return await importOriginal<typeof import("../plugins/runtime/runtime-whatsapp-boundary.js")>();
|
||||
return await importOriginal<
|
||||
typeof import("../plugins/runtime/runtime-web-channel-boundary.js")
|
||||
>();
|
||||
});
|
||||
|
||||
vi.mock("./send-runtime/whatsapp.js", () => {
|
||||
|
||||
Reference in New Issue
Block a user