(text: string, kind: 'file' | 'selection' = 'file', path = 'src/sum.ts')
| 23 | |
| 24 | const selection: BrowserChatAttachment = { id: 'selection-1', text: '\t a +\r\n b ', path: 'src/sum.ts', project: 'sample', startLine: 3, startColumn: 7, endLine: 4, endColumn: 5, sourceVersion: 'sha256:123' }; |
| 25 | const reader = (text: string, kind: 'file' | 'selection' = 'file', path = 'src/sum.ts'): BrowserChatReaderContext => ({ project: 'sample', path, status: 'ready', source: { ...selection, text, path, kind, id: `reader-${path}-${kind}` } }); |
| 26 | function fixture() { |
| 27 | const runtime = { |
| 28 | prepare: vi.fn(async (_progress: (value: BrowserAiProgress) => void, _options?: { cacheOnly?: boolean }) => {}), |
no outgoing calls
no test coverage detected