test(core): use lightweight clears in stable mock setup

This commit is contained in:
Peter Steinberger
2026-02-22 07:55:00 +00:00
parent ad400afb24
commit 089270e769
3 changed files with 12 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ describe("extractAssistantText", () => {
describe("resolveAnnounceTarget", () => {
beforeEach(async () => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
await installRegistry();
});
@@ -179,7 +179,7 @@ describe("resolveAnnounceTarget", () => {
describe("sessions_list gating", () => {
beforeEach(() => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
callGatewayMock.mockResolvedValue({
path: "/tmp/sessions.json",
sessions: [
@@ -201,7 +201,7 @@ describe("sessions_list gating", () => {
describe("sessions_send gating", () => {
beforeEach(() => {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
});
it("blocks cross-agent sends when tools.agentToAgent.enabled is false", async () => {