test(inbound): share dispatch capture mock across channels

This commit is contained in:
Peter Steinberger
2026-02-21 22:23:02 +00:00
parent be0e0ebf89
commit df35829810
3 changed files with 13 additions and 20 deletions

View File

@@ -0,0 +1,9 @@
import { vi } from "vitest";
import { createInboundContextCapture } from "./inbound-contract-capture.js";
import { buildDispatchInboundContextCapture } from "./inbound-contract-capture.js";
export const inboundCtxCapture = createInboundContextCapture();
vi.mock("../../src/auto-reply/dispatch.js", async (importOriginal) => {
return await buildDispatchInboundContextCapture(importOriginal, inboundCtxCapture);
});