test(agents): reduce reset overhead in session visibility and hooks specs

This commit is contained in:
Peter Steinberger
2026-02-22 08:16:45 +00:00
parent 991e3184b7
commit b10b8dc8f8
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ function getSessionsHistoryTool(options?: { sandboxed?: boolean }) {
function mockGatewayWithHistory(
extra?: (req: { method?: string; params?: Record<string, unknown> }) => unknown,
) {
callGatewayMock.mockReset();
callGatewayMock.mockClear();
callGatewayMock.mockImplementation(async (opts: unknown) => {
const req = opts as { method?: string; params?: Record<string, unknown> };
const handled = extra?.(req);