chore: run format and fix tests

This commit is contained in:
Ralph Khreish
2025-08-02 22:55:58 +03:00
parent 30359e3cea
commit cc8e088e6a
7 changed files with 70 additions and 56 deletions

View File

@@ -8,13 +8,17 @@ jest.unstable_mockModule('../../../../../scripts/modules/utils.js', () => ({
log: jest.fn(),
readJSON: jest.fn(),
writeJSON: jest.fn(),
getCurrentTag: jest.fn(() => 'master')
getCurrentTag: jest.fn(() => 'master'),
readComplexityReport: jest.fn(),
findTaskInComplexityReport: jest.fn(),
findProjectRoot: jest.fn()
}));
jest.unstable_mockModule(
'../../../../../scripts/modules/ai-services-unified.js',
() => ({
generateObjectService: jest.fn()
generateObjectService: jest.fn(),
generateTextService: jest.fn()
})
);
@@ -26,8 +30,22 @@ jest.unstable_mockModule(
})
);
jest.unstable_mockModule(
'../../../../../scripts/modules/task-manager/analyze-task-complexity.js',
() => ({
default: jest.fn()
})
);
jest.unstable_mockModule(
'../../../../../src/utils/path-utils.js',
() => ({
findComplexityReportPath: jest.fn()
})
);
// Import modules after mocking
const { log, readJSON, writeJSON } = await import(
const { log, readJSON, writeJSON, readComplexityReport, findTaskInComplexityReport } = await import(
'../../../../../scripts/modules/utils.js'
);
const { generateObjectService } = await import(