test(core): reduce reset overhead in messaging and agent e2e mocks

This commit is contained in:
Peter Steinberger
2026-02-22 08:33:06 +00:00
parent ce09fe2bb7
commit 1ba1c3f306
7 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ describe("requestExecApprovalDecision", () => {
});
beforeEach(() => {
vi.mocked(callGatewayTool).mockReset();
vi.mocked(callGatewayTool).mockClear();
});
it("returns string decisions", async () => {

View File

@@ -28,7 +28,7 @@ function mockSingleActiveSummary(overrides: Partial<typeof baseActiveAnthropicSu
describe("bedrock discovery", () => {
beforeEach(() => {
sendMock.mockReset();
sendMock.mockClear();
});
it("filters to active streaming text models and maps modalities", async () => {

View File

@@ -48,7 +48,7 @@ function createManagedRun(exit: MockRunExit, pid = 1234) {
describe("runCliAgent with process supervisor", () => {
beforeEach(() => {
supervisorSpawnMock.mockReset();
supervisorSpawnMock.mockClear();
});
it("runs CLI through supervisor and returns payload", async () => {

View File

@@ -12,7 +12,7 @@ vi.mock("../../gateway/call.js", () => ({
describe("gateway tool defaults", () => {
beforeEach(() => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
});
it("leaves url undefined so callGateway can use config", () => {