From 9027882fb401df2a9df6a89facb2bdb94b8b731b Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Tue, 24 Jan 2023 09:06:27 -0600
Subject: Account switcher (#85)

* Update the account-create and signin views to use the design system.

Also:
- Add borderDark to the theme
- Start to an account selector in the signin flow

* Dark mode fixes in signin ui

* Track multiple active accounts and provide account-switching UI

* Add test tooling for an in-memory pds

* Add complete integration tests for login and the account switcher
---
 jest/test-utils.tsx | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

(limited to 'jest/test-utils.tsx')

diff --git a/jest/test-utils.tsx b/jest/test-utils.tsx
index c84ee637e..5a74a6ef6 100644
--- a/jest/test-utils.tsx
+++ b/jest/test-utils.tsx
@@ -4,20 +4,19 @@ import {GestureHandlerRootView} from 'react-native-gesture-handler'
 import {RootSiblingParent} from 'react-native-root-siblings'
 import {SafeAreaProvider} from 'react-native-safe-area-context'
 import {RootStoreProvider} from '../src/state'
+import {ThemeProvider} from '../src/view/lib/ThemeContext'
 import {mockedRootStore} from '../__mocks__/state-mock'
 
-const customRender = (ui: any, storeMock?: any) =>
+const customRender = (ui: any, rootStore?: any) =>
   render(
     // eslint-disable-next-line react-native/no-inline-styles
     <GestureHandlerRootView style={{flex: 1}}>
       <RootSiblingParent>
         <RootStoreProvider
-          value={
-            storeMock != null
-              ? {...mockedRootStore, ...storeMock}
-              : mockedRootStore
-          }>
-          <SafeAreaProvider>{ui}</SafeAreaProvider>
+          value={rootStore != null ? rootStore : mockedRootStore}>
+          <ThemeProvider theme="light">
+            <SafeAreaProvider>{ui}</SafeAreaProvider>
+          </ThemeProvider>
         </RootStoreProvider>
       </RootSiblingParent>
     </GestureHandlerRootView>,
-- 
cgit 1.4.1

