An indexed project for the client to find a daemon for.
()
| 233 | |
| 234 | /** An indexed project for the client to find a daemon for. */ |
| 235 | async function indexedProject(): Promise<string> { |
| 236 | const root = tempDir('cg-proofhook-'); |
| 237 | fs.writeFileSync(path.join(root, 'orders.ts'), 'export function placeOrder() { return 1; }\n'); |
| 238 | const cg = await CodeGraph.init(root, { index: true }); |
| 239 | cg.close(); |
| 240 | return root; |
| 241 | } |
| 242 | |
| 243 | describe('the hook sends a prompt only to a daemon that proves it runs as this user (#3284)', () => { |
| 244 | const answer = () => ({ result: { content: [{ type: 'text', text: 'FROM THE DAEMON' }] } }); |
no test coverage detected