Improve test coverage and fix various issues

This commit is contained in:
ponas committed 2026-07-30 00:02:21 +02:00
1 parent e812ab2b45
commit 1069d66e2c
8 files changed
+484 -6

No files matched your search

+4
View File
@@ -9,6 +9,10 @@ const persistConfig = {
key: 'root',
storage: AsyncStorage,
blacklist: ['isLoggingIn', 'isFetchingUserData', 'isRegisteringUser', 'loginError'],
// redux-persist never clears its 5s rehydration-watchdog timer, which keeps
// Jest workers alive after tests finish; 0 disables it. The mocked
// AsyncStorage rehydrates instantly, so the watchdog protects nothing there.
timeout: process.env.NODE_ENV === 'test' ? 0 : undefined,
};
const persistedReducer = persistReducer(persistConfig, rootReducer);