(baseUrl: string, sid: string)
| 71 | } |
| 72 | |
| 73 | async function fetchSnapshot(baseUrl: string, sid: string): Promise<{ |
| 74 | status: number; |
| 75 | envelope: { code: number; data: unknown }; |
| 76 | ms: number; |
| 77 | }> { |
| 78 | const t0 = performance.now(); |
| 79 | const res = await fetch(`${baseUrl}/api/v1/sessions/${sid}/snapshot`, withAuth()); |
| 80 | const envelope = (await res.json()) as { code: number; data: unknown }; |
| 81 | return { status: res.status, envelope, ms: performance.now() - t0 }; |
| 82 | } |
| 83 | |
| 84 | describe('SnapshotReader smoke (real HTTP)', () => { |
| 85 | it('auto mode returns 200 over real HTTP', async () => { |
no test coverage detected