From 7e19eede55b72cabd44a04a304ebd2e4718aeba6 Mon Sep 17 00:00:00 2001 From: luke2x <97411838+luke2x@users.noreply.github.com> Date: Sun, 18 Oct 2026 21:10:39 +0100 Subject: [PATCH] test(mobile): restore settings regression tests after UI module moves --- .../settings/SettingsServerControlsRouteScreen.test.tsx | 5 +++-- .../settings/components/BranchNamingSettings.test.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx index df758e3e78a9..d4f00e939a06 100644 --- a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx +++ b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx @@ -25,14 +25,15 @@ vi.mock("../../state/use-atom-command", () => ({ useAtomCommand: () => mocks.updateSettings, })); vi.mock("../threads/thread-settings-options", () => ({ RUNTIME_MODE_CHOICES: [] })); -vi.mock("../../components/ScreenScrollView", () => ({ ScreenScrollView: Children })); -vi.mock("../../components/AppText", () => ({ AppText: Children })); +vi.mock("../../components/ui/ScreenScrollView", () => ({ ScreenScrollView: Children })); +vi.mock("../../components/ui/AppText", () => ({ AppText: Children })); vi.mock("./components/SettingsScreen", () => ({ SettingsScreen: Children })); vi.mock("./components/SettingsEnvironmentFilterHeader", () => ({ AndroidSettingsEnvironmentFilter: () => null, SettingsEnvironmentFilterHeader: () => null, })); vi.mock("./components/SettingsSection", () => ({ SettingsSection: Children })); +vi.mock("./components/DatabaseStorageNotice", () => ({ DatabaseStorageNotice: () => null })); vi.mock("./components/SettingsChoiceRow", () => ({ SettingsChoiceRow: () => null })); vi.mock("./components/SettingsSwitchRow", () => ({ SettingsSwitchRow: () => null })); vi.mock("./components/SettingsRow", () => ({ SettingsRow: () => null })); diff --git a/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx b/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx index 9e158fb58b25..208756b63300 100644 --- a/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx +++ b/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx @@ -17,7 +17,7 @@ const inputs = vi.hoisted(() => new Map()); vi.mock("react-native", () => ({ View: ({ children }: { children: ReactNode }) =>
{children}
, })); -vi.mock("../../../components/AppText", () => ({ +vi.mock("../../../components/ui/AppText", () => ({ AppText: ({ children }: { children: ReactNode }) => {children}, AppTextInput: (props: InputProps) => { inputs.set(props.accessibilityLabel, props);