({
apiKey,
})
| 35 | let trackEvent: TrackEventFn |
| 36 | |
| 37 | const getUserInfoFromApiKey: GetUserInfoFromApiKeyFn = async ({ |
| 38 | apiKey, |
| 39 | }) => { |
| 40 | if (apiKey !== 'test-key') return null |
| 41 | return { |
| 42 | id: 'user-123', |
| 43 | email: 'test@example.com', |
| 44 | discord_id: null, |
| 45 | } as Awaited<ReturnType<GetUserInfoFromApiKeyFn>> |
| 46 | } |
| 47 | |
| 48 | beforeEach(() => { |
| 49 | insertedRows.length = 0 |
no outgoing calls
no test coverage detected