(systemDir: string)
| 12 | } |
| 13 | |
| 14 | function readAnalyticsData(systemDir: string): { |
| 15 | firstReportDate?: string | null |
| 16 | lastReportDate?: string | null |
| 17 | } { |
| 18 | return JSON.parse(readFileSync(join(systemDir, 'analytics.json'), 'utf-8')) |
| 19 | } |
| 20 | |
| 21 | test('trackDailyActive does not mark the day as reported when fetch rejects', async () => { |
| 22 | const systemDir = createTempSystemDir() |