perf(test): dedupe telegram/node coverage and speed fixtures

This commit is contained in:
Peter Steinberger
2026-02-14 02:26:56 +00:00
parent 203b5bdf71
commit d3eb014892
5 changed files with 10 additions and 376 deletions

View File

@@ -89,7 +89,10 @@ vi.mock("./session.js", () => {
import { monitorWebInbox, resetWebInboundDedupe } from "./inbound.js";
async function waitForMessage(onMessage: ReturnType<typeof vi.fn>) {
await vi.waitFor(() => expect(onMessage).toHaveBeenCalledTimes(1));
await vi.waitFor(() => expect(onMessage).toHaveBeenCalledTimes(1), {
interval: 1,
timeout: 250,
});
return onMessage.mock.calls[0][0];
}