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: keep real browserService exports in codeAnimation export.realBrowser mock (#12831)

Adam Eivya6060d0ccf64
diff --git a/server/services/codeAnimation/export.realBrowser.test.js b/server/services/codeAnimation/export.realBrowser.test.js
index ac3a5960af..139ac7f300 100644
--- a/server/services/codeAnimation/export.realBrowser.test.js
+++ b/server/services/codeAnimation/export.realBrowser.test.js
@@ -14,7 +14,10 @@ import { resolveTestChrome } from '../../lib/browserSuiteGate.js';
const state = vi.hoisted(() => ({ html: '' }));
let endpoint;
-vi.mock('../browserService.js', () => ({ cdpRequest: path => fetch(`${endpoint}${path}`) }));
+vi.mock('../browserService.js', async importOriginal => ({
+ ...await importOriginal(),
+ cdpRequest: path => fetch(`${endpoint}${path}`),
+}));
vi.mock('../../lib/fileUtils.js', async importOriginal => makePathsProxy(await importOriginal(), {
dataRoot: () => lazyTempDataRoot('portos-code-animation-export-'),
}));