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
build the expected package.json path with join() in the updateChecker test
[._.]/ Adam Eivy9f4c8428fb7c
diff --git a/server/services/updateChecker.test.js b/server/services/updateChecker.test.jsindex 7b5dc3c0ea..048a746e0c 100644--- a/server/services/updateChecker.test.js+++ b/server/services/updateChecker.test.js@@ -1,4 +1,5 @@import { describe, it, expect, vi, beforeEach } from 'vitest';+import { join } from 'path';// Mock dependencies before importing the modulevi.mock('../lib/fileUtils.js', () => ({@@ -91,7 +92,9 @@ describe('getCurrentVersion', () => {readJSONFile.mockResolvedValue({ version: '1.26.0' });const version = await getCurrentVersion();expect(version).toBe('1.26.0');- expect(readJSONFile).toHaveBeenCalledWith('/mock/package.json', { version: '0.0.0' });+ // Built with join(), like the source — a '/mock/package.json' literal is a+ // POSIX path and the same join() yields '\mock\package.json' on Windows.+ expect(readJSONFile).toHaveBeenCalledWith(join('/mock', 'package.json'), { version: '0.0.0' });});it('should fall back to 0.0.0 when package.json missing', async () => {