(question: string, fetchImpl: ReturnType<typeof answering>)
| 17 | } |
| 18 | |
| 19 | function inputFor(question: string, fetchImpl: ReturnType<typeof answering>): AskInput { |
| 20 | return { |
| 21 | question, |
| 22 | source: fakeSource(), |
| 23 | root: FAKE_ROOT, |
| 24 | origin: 'http://127.0.0.1:4141', |
| 25 | fetch: fetchImpl as unknown as AskInput['fetch'], |
| 26 | modelName: 'Qwen3.5-2B', |
| 27 | modelClass: 'A', |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | describe('compileQuestion', () => { |
| 32 | it('produces cards and a prompt for a question the index can answer', async () => { |
no test coverage detected