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

test: mock Drei in CoS avatar test to avoid Three CJS deprecation (#12693)

[._.]/a62ee1f4606e
diff --git a/client/src/components/cos/MiniCharacterCoSAvatar.test.jsx b/client/src/components/cos/MiniCharacterCoSAvatar.test.jsx
index e81a407aae..7b676dca20 100644
--- a/client/src/components/cos/MiniCharacterCoSAvatar.test.jsx
+++ b/client/src/components/cos/MiniCharacterCoSAvatar.test.jsx
@@ -25,6 +25,8 @@ vi.mock('@react-three/fiber', () => ({
useFrame: vi.fn(),
useThree: vi.fn(() => ({ invalidate: vi.fn() })),
}));
+// Drei ships a CommonJS entry that pulls in three.cjs (THREE_CJS_DEPRECATED); the Canvas is stubbed, so the controls are never rendered.
+vi.mock("@react-three/drei", () => ({ OrbitControls: () => null }));
let reduceMotionPreference = false;
vi.mock('../../hooks/usePrefersReducedMotion', () => ({