(sessions: TestSession[], project = 'app')
| 91 | } |
| 92 | |
| 93 | function projectWithContextSessions(sessions: TestSession[], project = 'app'): ProjectSummary { |
| 94 | return { |
| 95 | project, |
| 96 | projectPath: `/tmp/${project}`, |
| 97 | sessions, |
| 98 | totalCostUSD: sessions.reduce((sum, session) => sum + session.totalCostUSD, 0), |
| 99 | totalApiCalls: sessions.reduce((sum, session) => sum + session.apiCalls, 0), |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | describe('detectJunkReads', () => { |
| 104 | it('returns null below minimum threshold', () => { |