MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / readAnalyticsData

Function readAnalyticsData

packages/node-runtime/src/services/analytics.test.ts:14–19  ·  view source on GitHub ↗
(systemDir: string)

Source from the content-addressed store, hash-verified

12}
13
14function 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
21test('trackDailyActive does not mark the day as reported when fetch rejects', async () => {
22 const systemDir = createTempSystemDir()

Callers 1

analytics.test.tsFile · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected