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

fix: isolate audit quality test from database

[._.]/ Adam Eivy005e384381b2
diff --git a/server/services/appQuality.test.js b/server/services/appQuality.test.js
index 98f7920b9c..d2b6026aa3 100644
--- a/server/services/appQuality.test.js
+++ b/server/services/appQuality.test.js
@@ -36,7 +36,9 @@ describe('scheduled audit measurement workflow', () => {
const legacyReport = report({ category: 'react-lifecycle', score: 73 });
const query = vi.fn().mockResolvedValue({ rows: [] });
await expect(recordAuditQuality({ task, taskType: 'react-lifecycle', agentId: 'agent-legacy', workspacePath: '/repo', success: true, assessedAt }, {
- readFile: vi.fn().mockResolvedValue(JSON.stringify({ summary: sentinel(legacyReport), payload: null })), query,
+ readFile: vi.fn().mockResolvedValue(JSON.stringify({ summary: sentinel(legacyReport), payload: null })),
+ query,
+ ensureSchema: vi.fn(),
})).resolves.toBe(true);
expect(query.mock.calls[0][1]).toEqual([
'portos-default', 'ui-lifecycle', 'agent-legacy', assessedAt,