🧪 ci: Mock the Parent Subagent Index Handler in Convos Route Tests (#15146)

This commit is contained in:
Danny Avila 2026-08-23 22:54:19 -04:00 committed by GitHub
parent dd85c6d6d0
commit d85bea41cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,9 @@ module.exports = {
return archiveAllHandler;
}),
createSubagentThreadViewHandler: jest.fn(() => (_req, res) => res.status(200).json({})),
createParentSubagentIndexHandler: jest.fn(
() => (_req, res) => res.status(200).json({ threads: [] }),
),
GenerationJobManager: generationJobManager,
isStopConfirmed: jest.fn(
(result) => result?.success === true || result?.failureReason === 'already_settled',