Skip to content
TypeScript

test(mobile): branch naming and server controls settings tests load again (#21293)

Julius Marmingef7dd1a392fc0
diff --git a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx
index df758e3e78a..df933f727b3 100644
--- a/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx
+++ b/apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx
@@ -25,13 +25,14 @@ 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/DatabaseStorageNotice", () => ({ DatabaseStorageNotice: () => null }));
vi.mock("./components/SettingsSection", () => ({ SettingsSection: Children }));
vi.mock("./components/SettingsChoiceRow", () => ({ SettingsChoiceRow: () => null }));
vi.mock("./components/SettingsSwitchRow", () => ({ SettingsSwitchRow: () => null }));
diff --git a/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx b/apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx
index 9e158fb58b2..208756b6330 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<string, InputProps>());
vi.mock("react-native", () => ({
View: ({ children }: { children: ReactNode }) => <div>{children}</div>,
}));
-vi.mock("../../../components/AppText", () => ({
+vi.mock("../../../components/ui/AppText", () => ({
AppText: ({ children }: { children: ReactNode }) => <span>{children}</span>,
AppTextInput: (props: InputProps) => {
inputs.set(props.accessibilityLabel, props);