( r: RunningServer, sid: string, )
| 108 | } |
| 109 | |
| 110 | async function getSnapshot( |
| 111 | r: RunningServer, |
| 112 | sid: string, |
| 113 | ): Promise<{ statusCode: number; env: ReturnType<typeof envelopeOf<SessionSnapshotResponse>> }> { |
| 114 | const res = await appOf(r).inject({ |
| 115 | method: 'GET', |
| 116 | url: `/api/v1/sessions/${sid}/snapshot`, |
| 117 | }); |
| 118 | return { statusCode: res.statusCode, env: envelopeOf<SessionSnapshotResponse>(res.json()) }; |
| 119 | } |
| 120 | |
| 121 | describe('GET /api/v1/sessions/{sid}/snapshot (v2 initial sync)', () => { |
| 122 | it('idle fresh session → empty snapshot at the session-creation watermark', async () => { |
no test coverage detected