Merge branch 'next' of github.com:eyaltoledano/claude-task-master into add-complexity-score-to-task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user