Merge branch 'next' of github.com:eyaltoledano/claude-task-master into add-complexity-score-to-task

This commit is contained in:
Shrey Paharia
2025-05-01 22:21:02 +05:30
183 changed files with 24876 additions and 15910 deletions

View File

@@ -145,11 +145,11 @@ jest.mock('../../../mcp-server/src/core/utils/path-utils.js', () => ({
}));
// Mock the AI module to prevent any real API calls
jest.mock('../../../scripts/modules/ai-services.js', () => ({
getAnthropicClient: mockGetAnthropicClient,
getConfiguredAnthropicClient: mockGetConfiguredAnthropicClient,
_handleAnthropicStream: mockHandleAnthropicStream,
parseSubtasksFromText: mockParseSubtasksFromText
jest.mock('../../../scripts/modules/ai-services-unified.js', () => ({
// Mock the functions exported by ai-services-unified.js as needed
// For example, if you are testing a function that uses generateTextService:
generateTextService: jest.fn().mockResolvedValue('Mock AI Response')
// Add other mocks for generateObjectService, streamTextService if used
}));
// Mock task-manager.js to avoid real operations