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

config-settings.test.tsx mocks @/store/settings-scope with a hand-written
subset of exports; SettingsProfileScope now also reads
$settingsScopeProfile and $settingsScopeEditsNonDefault, so the partial
mock threw at render time in CI (JS & TS checks red).
This commit is contained in:
teknium1
2026-09-14 19:50:34 -07:00
committed by Teknium
parent d7d9209795
commit d85aaa3049

View File

@@ -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', () => ({