(records: TelemetryRecord[])
| 79 | } |
| 80 | |
| 81 | function recordingTelemetry(records: TelemetryRecord[]): TelemetryClient { |
| 82 | return { |
| 83 | track: (event, properties) => { |
| 84 | records.push({ event, sessionId: null, properties }); |
| 85 | }, |
| 86 | withContext: (patch) => ({ |
| 87 | track: (event, properties) => { |
| 88 | records.push({ event, sessionId: patch.sessionId ?? null, properties }); |
| 89 | }, |
| 90 | }), |
| 91 | }; |
| 92 | } |
| 93 | |
| 94 | function appOf(r: RunningServer): { |
| 95 | inject: (req: unknown) => Promise<{ statusCode: number; json: () => unknown }>; |
no test coverage detected