Skip to content

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

fix: defer mocked voice lifecycle imports in regression test

[._.]/ Adam Eivy5a4a9697dc94
diff --git a/server/services/voice/bootstrap.retirement.test.js b/server/services/voice/bootstrap.retirement.test.js
index e823ee5b4b..3d0a4837e5 100644
--- a/server/services/voice/bootstrap.retirement.test.js
+++ b/server/services/voice/bootstrap.retirement.test.js
@@ -20,11 +20,11 @@ vi.mock('../settings.js', () => ({ getSettings: vi.fn(), updateSettings: vi.fn()
import { existsSync } from 'fs';
import { whichFirst } from '../../lib/processEnv.js';
-import { execPm2 } from '../pm2.js';
+const { execPm2 } = await import('../pm2.js');
import { execFile } from '../../lib/childProcess.js';
-import { getProviderById } from '../providers.js';
-import { VOICE_DEFAULTS } from './config.js';
-import { reconcile } from './bootstrap.js';
+const { getProviderById } = await import('../providers.js');
+const { VOICE_DEFAULTS } = await import('./config.js');
+const { reconcile } = await import('./bootstrap.js');
it('does not download or preload anything when an upgraded install boots before Piper setup', async () => {
const cfg = { ...VOICE_DEFAULTS, enabled: true, tts: { ...VOICE_DEFAULTS.tts, retiredEngine: 'kokoro' } };