Unified · Split
| @@ -29,6 +29,10 @@ if (process.env.EXPO_PUBLIC_SHOWCASE === "1") { · 28 unmodified lines | |||
| 29 | prepareNativeShowcaseCapture(); | 29 | prepareNativeShowcaseCapture(); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | void SplashScreen.preventAutoHideAsync().catch(() => { | ||
| 33 | // The native module can be unavailable in non-native test environments. | ||
| 34 | }); | ||
| 35 | |||
| 32 | const appLinking = { | 36 | const appLinking = { |
| 33 | prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"], | 37 | prefixes: [Linking.createURL("/"), "t3code://", "t3code-dev://", "t3code-preview://"], |
| 34 | // The Expo dev client launches the app via | 38 | // The Expo dev client launches the app via |
| @@ -24,7 +24,6 @@ describe("home list options", () => { · 23 unmodified lines | |||
| 24 | expect( | 24 | expect( |
| 25 | hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }), | 25 | hasCustomHomeListOptions({ ...defaults, selectedEnvironmentId: "environment-1" as never }), |
| 26 | ).toBe(true); | 26 | ).toBe(true); |
| 27 | expect(hasCustomHomeListOptions({ ...defaults, projectGroupingMode: "separate" })).toBe(true); | ||
| 28 | expect( | 27 | expect( |
| 29 | hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }), | 28 | hasCustomHomeListOptions({ ...defaults, selectedProjectKey: "environment-1:project-1" }), |
| 30 | ).toBe(true); | 29 | ).toBe(true); |
| @@ -88,7 +88,6 @@ export function HomeListOptionsProvider({ · 87 unmodified lines | |||
| 88 | export function hasCustomHomeListOptions( | 88 | export function hasCustomHomeListOptions( |
| 89 | options: HomeListOptions & { | 89 | options: HomeListOptions & { |
| 90 | readonly selectedProjectKey?: string | null; | 90 | readonly selectedProjectKey?: string | null; |
| 91 | readonly projectGroupingMode?: SidebarProjectGroupingMode; | ||
| 92 | }, | 91 | }, |
| 93 | ): boolean { | 92 | ): boolean { |
| 94 | const defaultProjectSortOrder = | 93 | const defaultProjectSortOrder = |
| @@ -97,7 +96,6 @@ export function hasCustomHomeListOptions( · 2 unmodified lines | |||
| 97 | : DEFAULT_SIDEBAR_PROJECT_SORT_ORDER; | 96 | : DEFAULT_SIDEBAR_PROJECT_SORT_ORDER; |
| 98 | return ( | 97 | return ( |
| 99 | options.selectedEnvironmentId !== null || | 98 | options.selectedEnvironmentId !== null || |
| 100 | (options.projectGroupingMode !== undefined && options.projectGroupingMode !== "repository") || | ||
| 101 | (options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) || | 99 | (options.selectedProjectKey !== null && options.selectedProjectKey !== undefined) || |
| 102 | options.projectSortOrder !== defaultProjectSortOrder || | 100 | options.projectSortOrder !== defaultProjectSortOrder || |
| 103 | options.threadSortOrder !== DEFAULT_SIDEBAR_THREAD_SORT_ORDER | 101 | options.threadSortOrder !== DEFAULT_SIDEBAR_THREAD_SORT_ORDER |