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: build the expected daily-log path with join() so Windows CI stops failing on separators (#4112)
[._.]/ Adam Eivy69467b025ac1
diff --git a/server/services/meatspaceDailyLog.test.js b/server/services/meatspaceDailyLog.test.jsindex 67a3715b1b..8c4a6bf55c 100644--- a/server/services/meatspaceDailyLog.test.js+++ b/server/services/meatspaceDailyLog.test.js@@ -1,4 +1,5 @@import { describe, it, expect, vi, beforeEach } from 'vitest';+import { join } from 'path';// The alcohol, nicotine, and body-composition services all read the same// daily-log.json. They used to each carry a byte-identical copy of the probe →@@ -37,6 +38,10 @@ import { getDailyAlcohol } from './meatspaceAlcohol.js';import { getDailyNicotine } from './meatspaceNicotine.js';import { getBodyHistory } from './meatspaceHealth.js';+// Built with join() rather than a literal: the module builds it the same way, and+// win32 separators would make a hardcoded POSIX path fail on the Windows runner.+const EXPECTED_LOG_PATH = join('/mock/data/meatspace', 'daily-log.json');+beforeEach(() => {vi.clearAllMocks();readDailyLogIfEnabled.mockResolvedValue(null);@@ -44,7 +49,7 @@ beforeEach(() => {describe('DAILY_LOG_FILE', () => {it('points at daily-log.json under the meatspace data dir', () => {- expect(DAILY_LOG_FILE).toBe('/mock/data/meatspace/daily-log.json');+ expect(DAILY_LOG_FILE).toBe(EXPECTED_LOG_PATH);});});@@ -60,7 +65,7 @@ describe('readLocalDailyLog', () => {readJSONFile.mockResolvedValue({ entries: [] });await readLocalDailyLog({ strict: true, label: 'Alcohol' });expect(readJSONFile).toHaveBeenCalledWith(- '/mock/data/meatspace/daily-log.json',+ EXPECTED_LOG_PATH,{ entries: [], lastEntryDate: null },{ allowArray: false, strict: true });