feat(tests): add markSummarizationUsage mock for improved test coverage

Introduced a mock for the markSummarizationUsage function in the responses unit tests to enhance the testing of summarization usage tracking. This addition supports better validation of summarization-related functionalities and ensures comprehensive test coverage for the agents' response handling.
This commit is contained in:
Danny Avila 2026-03-11 21:38:54 -04:00
parent eccd248689
commit 9005625a6f
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -107,6 +107,7 @@ const mockGetCacheMultiplier = jest.fn().mockReturnValue(null);
jest.mock('~/server/controllers/agents/callbacks', () => ({
createToolEndCallback: jest.fn().mockReturnValue(jest.fn()),
createResponsesToolEndCallback: jest.fn().mockReturnValue(jest.fn()),
markSummarizationUsage: jest.fn(),
}));
jest.mock('~/server/services/PermissionService', () => ({