Skip to content

The agent that grows with you

test(desktop): stub the new settings-scope atoms in the ConfigSettings test

teknium1d85aaa3049a9
diff --git a/apps/desktop/src/app/settings/config-settings.test.tsx b/apps/desktop/src/app/settings/config-settings.test.tsx
index fb42ea448ae..f9b2ed48320 100644
--- a/apps/desktop/src/app/settings/config-settings.test.tsx
+++ b/apps/desktop/src/app/settings/config-settings.test.tsx
@@ -26,10 +26,14 @@ vi.mock('../hooks/use-on-profile-switch', () => ({
// The real stores pull in the gateway/profile stack, which needs a live
// backend connection. This page only reads the "applies to" scope override
-// and the repo-discovery signature, neither of which this test touches.
+// and the repo-discovery signature, neither of which this test touches. The
+// scope chip it renders also reads the selected profile and the loud-note
+// selector, so those are stubbed to the single-profile default shape.
vi.mock('@/store/settings-scope', () => ({
$settingsRequestProfile: atom<string | undefined>(undefined),
- $settingsScopeOverride: atom<null | string>(null)
+ $settingsScopeEditsNonDefault: atom(false),
+ $settingsScopeOverride: atom<null | string>(null),
+ $settingsScopeProfile: atom<string>('default')
}))
vi.mock('@/store/projects', () => ({