test(perf): bypass matrix send queue delay in send tests

This commit is contained in:
Peter Steinberger
2026-03-02 17:46:22 +00:00
parent d7ae61c412
commit 54382a66b4

View File

@@ -24,6 +24,10 @@ vi.mock("@vector-im/matrix-bot-sdk", () => ({
RustSdkCryptoStorageProvider: vi.fn(),
}));
vi.mock("./send-queue.js", () => ({
enqueueSend: async <T>(_roomId: string, fn: () => Promise<T>) => await fn(),
}));
const loadWebMediaMock = vi.fn().mockResolvedValue({
buffer: Buffer.from("media"),
fileName: "photo.png",