(path: string, seen = new Set<string>())
| 78 | |
| 79 | describe('zerostack provider - parsing', () => { |
| 80 | async function parse(path: string, seen = new Set<string>()) { |
| 81 | const provider = createZerostackProvider(tmpDir) |
| 82 | const source = { path, project: 'myproject', provider: 'zerostack' } |
| 83 | const calls: ParsedProviderCall[] = [] |
| 84 | for await (const call of provider.createSessionParser(source, seen).parse()) { |
| 85 | calls.push(call) |
| 86 | } |
| 87 | return calls |
| 88 | } |
| 89 | |
| 90 | it('emits one cumulative call per session with a resolved cost', async () => { |
| 91 | const path = await write('sess-abc.json', session({ id: 'sess-abc' })) |
no test coverage detected