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(cos): avoid Three CommonJS warning in camera distance tests (#13351)
Adam Eivy16a4475db201
diff --git a/client/src/components/cos/CoSBackgroundCamera.test.js b/client/src/components/cos/CoSBackgroundCamera.test.jsindex 1db4aed8b8..ff2001d584 100644--- a/client/src/components/cos/CoSBackgroundCamera.test.js+++ b/client/src/components/cos/CoSBackgroundCamera.test.js@@ -1,10 +1,13 @@-import { describe, it, expect } from 'vitest';+import { describe, it, expect, vi } from 'vitest';import {computeCameraDistance,COMPACT_FRAME_HEIGHT,DESKTOP_FRAME_HEIGHT,} from './CoSBackgroundCamera.jsx';+// Distance-only tests do not need Fiber's renderer or its CommonJS Three.js import.+vi.mock('@react-three/fiber', () => ({ useThree: vi.fn() }));+describe('computeCameraDistance', () => {const z = 3.7;