(records: TelemetryRecord[])
| 34 | } |
| 35 | |
| 36 | function recordingTelemetry(records: TelemetryRecord[]): TelemetryClient { |
| 37 | const client: TelemetryClient = { |
| 38 | track: (event, properties) => { |
| 39 | records.push({ event, properties }); |
| 40 | }, |
| 41 | withContext: () => client, |
| 42 | setContext: () => {}, |
| 43 | }; |
| 44 | return client; |
| 45 | } |
| 46 | |
| 47 | async function waitForEvent( |
| 48 | records: readonly TelemetryRecord[], |
no test coverage detected