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([health-test-updatesettingswith-mock]): stub updateSettingsWith in the settings mock

[._.]/ Adam Eivy621da950ae34
diff --git a/server/routes/health.test.js b/server/routes/health.test.js
index 11d6f7574d..ad5563d86f 100644
--- a/server/routes/health.test.js
+++ b/server/routes/health.test.js
@@ -29,7 +29,11 @@ vi.mock('../lib/db.js', () => ({
vi.mock('../services/settings.js', () => ({
getSettings: vi.fn().mockResolvedValue({}),
- updateSettings: vi.fn().mockResolvedValue({})
+ updateSettings: vi.fn().mockResolvedValue({}),
+ // PUT /health/thresholds was migrated to updateSettingsWith (a read-modify-write
+ // that hands the mutator the current settings and returns its result). Mirror
+ // that contract: apply the mutator to an empty current-settings object.
+ updateSettingsWith: vi.fn(async (mutate) => mutate({}))
}));
describe('System Health Routes', () => {