(proof: FakeProof)
| 244 | const answer = () => ({ result: { content: [{ type: 'text', text: 'FROM THE DAEMON' }] } }); |
| 245 | |
| 246 | async function daemonProving(proof: FakeProof) { |
| 247 | const root = await indexedProject(); |
| 248 | const daemon = await startFakeDaemon(root, { proof, reply: answer }); |
| 249 | cleanups.push(() => daemon.close()); |
| 250 | return { root, daemon }; |
| 251 | } |
| 252 | |
| 253 | it('asks a daemon that proves it, with the prompt as the query', async () => { |
| 254 | const { root, daemon } = await daemonProving('valid'); |
no test coverage detected