The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 03:00 UTC
test(mobile): branch naming and server controls settings tests load again (#21293)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 18, 2026 at 14:08 UTC
f7dd1a392fc0ce5909db5423d73c5fc7eb23d707
2 files changed
+4
-3
apps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsx
+3
-2
@@ -25,13 +25,14 @@ vi.mock("../../state/use-atom-command", () => ({
25
useAtomCommand: () => mocks.updateSettings,
26
}));
27
vi.mock("../threads/thread-settings-options", () => ({ RUNTIME_MODE_CHOICES: [] }));
28
-vi.mock("../../components/ScreenScrollView", () => ({ ScreenScrollView: Children }));
29
-vi.mock("../../components/AppText", () => ({ AppText: Children }));
28
+vi.mock("../../components/ui/ScreenScrollView", () => ({ ScreenScrollView: Children }));
29
+vi.mock("../../components/ui/AppText", () => ({ AppText: Children }));
30
vi.mock("./components/SettingsScreen", () => ({ SettingsScreen: Children }));
31
vi.mock("./components/SettingsEnvironmentFilterHeader", () => ({
32
AndroidSettingsEnvironmentFilter: () => null,
33
SettingsEnvironmentFilterHeader: () => null,
34
}));
35
+vi.mock("./components/DatabaseStorageNotice", () => ({ DatabaseStorageNotice: () => null }));
36
vi.mock("./components/SettingsSection", () => ({ SettingsSection: Children }));
37
vi.mock("./components/SettingsChoiceRow", () => ({ SettingsChoiceRow: () => null }));
38
vi.mock("./components/SettingsSwitchRow", () => ({ SettingsSwitchRow: () => null }));
apps/mobile/src/features/settings/components/BranchNamingSettings.test.tsx
+1
-1
@@ -17,7 +17,7 @@ const inputs = vi.hoisted(() => new Map<string, InputProps>());
17
vi.mock("react-native", () => ({
18
View: ({ children }: { children: ReactNode }) => <div>{children}</div>,
19
}));
20
-vi.mock("../../../components/AppText", () => ({
20
+vi.mock("../../../components/ui/AppText", () => ({
21
AppText: ({ children }: { children: ReactNode }) => <span>{children}</span>,
22
AppTextInput: (props: InputProps) => {
23
inputs.set(props.accessibilityLabel, props);