(topic: BrowserChatTurn['topic'], extra: Partial<BrowserChatTurn> = {})
| 5 | |
| 6 | const attachment = { id: 'a', text: 'x', path: 'src/sum.ts', project: 'p', startLine: 1, startColumn: 1, endLine: 1, endColumn: 2, sourceVersion: 'v' }; |
| 7 | const turn = (topic: BrowserChatTurn['topic'], extra: Partial<BrowserChatTurn> = {}): BrowserChatTurn => |
| 8 | ({ id: String(Math.random()), prompt: 'q', modelId: 'm', request: [], answer: 'a', status: 'complete', topic, ...extra }); |
| 9 | |
| 10 | describe('questions without context (K11)', () => { |
| 11 | it.each([ |