(projectPath: string)
| 60 | // not-indexed guidance), the file gets that same answer. |
| 61 | it('answers a file exactly as it answers the folder holding it', async () => { |
| 62 | const ask = async (projectPath: string) => { |
| 63 | const h = new ToolHandler(null); |
| 64 | try { |
| 65 | const res = await h.execute('codegraph_search', { query: 'fileTarget', projectPath }); |
| 66 | return { isError: res.isError, text: res.content[0]!.text }; |
| 67 | } finally { |
| 68 | await h.closeAll(); |
| 69 | } |
| 70 | }; |
| 71 | const ssh = path.join(os.homedir(), '.ssh'); |
| 72 | const outside = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-2982-outside-'))); |
| 73 | try { |
no test coverage detected