(id: string, endedAtMs: number)
| 26 | |
| 27 | // withinIdleWindow only reads `id` + `ended_at`; the rest is irrelevant here. |
| 28 | const fakeSession = (id: string, endedAtMs: number): IClickhouseSession => |
| 29 | ({ |
| 30 | id, |
| 31 | ended_at: formatClickhouseDate(new Date(endedAtMs)), |
| 32 | }) as unknown as IClickhouseSession; |
| 33 | |
| 34 | afterEach(() => { |
| 35 | vi.restoreAllMocks(); |
no test coverage detected