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(voice): make profileBenchmarks test path assertions cross-platform (#5381)
[._.]/ Adam Eivya4719d8ff3e5
diff --git a/server/services/voice/profileBenchmarks.test.js b/server/services/voice/profileBenchmarks.test.jsindex 827cc7c964..00eb1b315a 100644--- a/server/services/voice/profileBenchmarks.test.js+++ b/server/services/voice/profileBenchmarks.test.js@@ -1,9 +1,10 @@+import { join } from 'node:path';import { describe, expect, it, vi } from 'vitest';vi.mock('./tts.js', () => ({ synthesize: vi.fn() }));vi.mock('./profiles.js', () => ({getProfileForSynthesis: vi.fn(),- profileArtifactDirectory: vi.fn((id) => `/tmp/${id}`),+ profileArtifactDirectory: vi.fn((id) => join('/tmp', id)),saveProfileBenchmark: vi.fn(),}));vi.mock('node:fs/promises', () => ({ mkdir: vi.fn(), writeFile: vi.fn() }));@@ -35,7 +36,7 @@ describe('voice profile benchmarks', () => {expect(getProfileForSynthesis).toHaveBeenCalledWith(PROFILE.id, 'studio');expect(profileArtifactDirectory).toHaveBeenCalledWith(PROFILE.id);- expect(mkdir).toHaveBeenCalledWith(`/tmp/${PROFILE.id}/benchmarks/v2`, { recursive: true });+ expect(mkdir).toHaveBeenCalledWith(join('/tmp', PROFILE.id, 'benchmarks', 'v2'), { recursive: true });expect(synthesize).toHaveBeenCalledTimes(VOICE_PROFILE_BENCHMARK_LINES.length);expect(synthesize).toHaveBeenNthCalledWith(1, expect.stringContaining('Example Character'), {profileId: PROFILE.id, route: 'studio', signal: undefined,