Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: mock getToday async so the call-transcript test actually guards the fix
[._.]/ Adam Eivy4c87192ceb7f
diff --git a/server/services/voice/callSession.test.js b/server/services/voice/callSession.test.jsindex 482b4af73d..0a09bf3501 100644--- a/server/services/voice/callSession.test.js+++ b/server/services/voice/callSession.test.js@@ -1,7 +1,11 @@import { describe, expect, it, beforeEach, afterEach, vi } from 'vitest';vi.mock('./config.js', () => ({ getVoiceConfig: vi.fn() }));-vi.mock('../brainJournal.js', () => ({ appendJournal: vi.fn(), getToday: () => '2026-08-29' }));+// getToday is ASYNC in production (it reads the configured timezone). Mocking it+// sync made this suite pass against an unawaited call whose pending Promise+// appendJournal's isIsoDate() guard silently rejected, so no transcript was ever+// written. The mock has to match the real signature for the assertion to mean anything.+vi.mock('../brainJournal.js', () => ({ appendJournal: vi.fn(), getToday: async () => '2026-08-29' }));vi.mock('./facetimeBridge.js', () => ({ probe: vi.fn(), call: vi.fn(), hangup: vi.fn() }));import { getVoiceConfig } from './config.js';