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: use native paths in Piper health detection test

[._.]/ Adam Eivy833fdfce4fc0
diff --git a/server/services/voice/health.test.js b/server/services/voice/health.test.js
index 079b69110e..ce7e29bbf1 100644
--- a/server/services/voice/health.test.js
+++ b/server/services/voice/health.test.js
@@ -1,4 +1,5 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';
+import { join } from 'node:path';
const mocks = vi.hoisted(() => ({
existsSync: vi.fn(() => true),
@@ -42,6 +43,6 @@ describe('voice health Piper probe', () => {
tts: { engine: 'piper', piper: { voicePath: '/voice/en.onnx' } },
});
- expect(mocks.existsSync).toHaveBeenCalledWith('/voice/piper/piper.exe');
+ expect(mocks.existsSync).toHaveBeenCalledWith(join('/voice', 'piper', 'piper.exe'));
});
});