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

mock getProviders in the VideoGen terms test so its unhandled rejection stops failing CI

[._.]/ Adam Eivy68bbc9d060be
diff --git a/client/src/pages/VideoGen.terms.test.jsx b/client/src/pages/VideoGen.terms.test.jsx
index 474054e7a3..d464765abd 100644
--- a/client/src/pages/VideoGen.terms.test.jsx
+++ b/client/src/pages/VideoGen.terms.test.jsx
@@ -76,6 +76,10 @@ vi.mock('../services/api', () => ({
getSettings: vi.fn(async () => ({ imageGen: { grok: { enabled: false } } })),
getVideoGenRuntimeStatus: vi.fn(async () => ({ installed: true, ready: true, current: true })),
listLorasFull: vi.fn(async () => []),
+ // The prompt-enhancement controls mount useProviderModels, which fetches the
+ // provider list from a mount effect. Unmocked it throws out of a passive
+ // effect — the tests still pass, but the unhandled rejection fails the run.
+ getProviders: vi.fn(async () => ({ providers: [] })),
}));
vi.mock('../hooks/useModelDownloadStatus', () => ({