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 Antigravity usage repair in usageBackfill unit tests

[._.]/ Adam Eivy1d760974a3d4
diff --git a/server/services/usageBackfill.test.js b/server/services/usageBackfill.test.js
index 37792aa9e7..293530249c 100644
--- a/server/services/usageBackfill.test.js
+++ b/server/services/usageBackfill.test.js
@@ -29,12 +29,19 @@ vi.mock('./grokUsageBackfill.js', () => ({
})),
}));
+vi.mock('./agyUsageBackfill.js', () => ({
+ applyAgyUsageRepair: vi.fn(async () => ({
+ added: 0, images: 0, backedUp: false, note: null, backupDir: null,
+ })),
+}));
+
const {
__resetHistoricalUsageBackfillForTests,
getHistoricalUsageBackfillStatus,
startHistoricalUsageBackfill
} = await import('./usageBackfill.js');
const { applyGrokUsageRepair } = await import('./grokUsageBackfill.js');
+const { applyAgyUsageRepair } = await import('./agyUsageBackfill.js');
class FakeWorker extends EventEmitter {
static instances = [];