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: stub catalog repair scripts in restore recovery admission test (#10940)

Adam Eivy5e8a3128c0a5
diff --git a/server/lib/db.restoreRecovery.test.js b/server/lib/db.restoreRecovery.test.js
index 012f244a87..1059273f19 100644
--- a/server/lib/db.restoreRecovery.test.js
+++ b/server/lib/db.restoreRecovery.test.js
@@ -39,6 +39,8 @@ vi.mock('../services/syncOrchestrator.js', () => ({
}));
// This suite isolates generic DB admission/release with a statement-free pg
// pool. Real execution-ledger SQL/capture/retry lives in the two DB fixtures.
+vi.mock('../scripts/migrateCatalogPayload.js', () => ({ migrateCatalogPayload: vi.fn(async () => ({ skipped: false })) }));
+vi.mock('../scripts/repairUniverseTags.js', () => ({ repairUniverseTags: vi.fn(async () => ({ skipped: false })) }));
vi.mock('../services/mediaAssetIndex/db.js', () => ({ reconcileMediaAssets: vi.fn(async () => ({ ok: true })) }));
vi.mock('../services/peerExecutionRestore.js', () => ({
finishPeerExecutionRestore: vi.fn(async () => {