mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 17:40:24 +00:00
perf(test): trim more matrix and telegram reload churn
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
createMockMatrixClient,
|
||||
expectExplicitMatrixClientConfig,
|
||||
@@ -38,10 +38,12 @@ let withResolvedMatrixControlClient: typeof import("./client.js").withResolvedMa
|
||||
let withResolvedMatrixSendClient: typeof import("./client.js").withResolvedMatrixSendClient;
|
||||
|
||||
describe("matrix send client helpers", () => {
|
||||
beforeEach(async () => {
|
||||
vi.resetModules();
|
||||
beforeAll(async () => {
|
||||
({ withResolvedMatrixControlClient, withResolvedMatrixSendClient } =
|
||||
await import("./client.js"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
primeMatrixClientResolverMocks({
|
||||
resolved: {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user