fix: resolve TypeScript error in telemetry test

Cast config.firstRun to string for Date constructor to fix TypeScript type checking.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-09-26 10:59:27 +02:00
parent fa04ece8ea
commit 75b55776f2

View File

@@ -419,7 +419,7 @@ describe('TelemetryConfigManager', () => {
const config = manager.loadConfig();
expect(config.firstRun).toBeDefined();
expect(new Date(config.firstRun).getTime()).toBeGreaterThan(0);
expect(new Date(config.firstRun as string).getTime()).toBeGreaterThan(0);
});
it('should handle config updates during runtime', () => {