test(gateway): fix send target resolution error typing

This commit is contained in:
Peter Steinberger
2026-02-18 12:54:22 +00:00
parent 56ebbf0eed
commit 3daf730fcc

View File

@@ -262,7 +262,10 @@ describe("gateway send mirroring", () => {
});
it("returns invalid request when outbound target resolution fails", async () => {
vi.mocked(resolveOutboundTarget).mockReturnValue({ ok: false, error: "target not found" });
vi.mocked(resolveOutboundTarget).mockReturnValue({
ok: false,
error: new Error("target not found"),
});
const { respond } = await runSend({
to: "channel:C1",