test: cli-emitters expects the title field sessions rows now carry (#789)

The #782 titles threading added title to the sessions JSON row shape but
missed this emitter test's key list; caught by the first full-suite run
since the merge.

Co-authored-by: reviewer <review@local>
This commit is contained in:
Resham Joshi 2026-07-20 14:18:20 -07:00 committed by GitHub
parent 8097052f67
commit 15a381b7d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ describe('CLI JSON emitters', () => {
const rows = JSON.parse(result.stdout) as Array<Record<string, unknown>>
expect(rows).toHaveLength(2)
expect(Object.keys(rows[0]!)).toEqual([
'sessionId', 'project', 'provider', 'models', 'cost', 'savingsUSD', 'calls', 'turns',
'sessionId', 'title', 'project', 'provider', 'models', 'cost', 'savingsUSD', 'calls', 'turns',
'inputTokens', 'outputTokens', 'cacheReadTokens', 'cacheWriteTokens',
'startedAt', 'endedAt', 'durationMs',
])