Pure refactor: Consolidate isWithinRoot() function calling. (#4163)

This commit is contained in:
Tommaso Sciortino
2025-07-14 22:55:49 -07:00
committed by GitHub
parent e584241141
commit fefa7ecbea
13 changed files with 96 additions and 179 deletions

View File

@@ -42,8 +42,9 @@ describe('ReadFileTool', () => {
const fileService = new FileDiscoveryService(tempRootDir);
const mockConfigInstance = {
getFileService: () => fileService,
getTargetDir: () => tempRootDir,
} as unknown as Config;
tool = new ReadFileTool(tempRootDir, mockConfigInstance);
tool = new ReadFileTool(mockConfigInstance);
mockProcessSingleFileContent.mockReset();
});