Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(mobile): restore settings regression tests after UI module moves #21280

Closedluke2x(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/21280/headopened View on GitHub

Showing 2 changed files with 4 additions and 3 deletions.

x
0 of 2 viewed, 2 left
1 addition and 1 deletionapps/mobile/src/features/settings/components/BranchNamingSettings.test.tsxModified
View file
@@ -17,7 +17,7 @@
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);
3 additions and 2 deletionsapps/mobile/src/features/settings/SettingsServerControlsRouteScreen.test.tsxModified
View file
@@ -25,14 +25,15 @@
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 }));