refactor(plugin-sdk): genericize web channel runtime seams

This commit is contained in:
Peter Steinberger
2026-04-03 11:16:17 +01:00
parent 182bec5091
commit 2766c27b2a
70 changed files with 490 additions and 265 deletions

View File

@@ -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", () => {