You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Koolbase.initializeForTesting(offline: true) sets up the offline layer as an app's is, on an in-memory database: a write the network fails is queued and shown from the device's copy, and Koolbase.db.syncPendingWrites() replays the queue through the test's httpClient, so a widget test plays a server that accepts or refuses each change (a refused one becomes a conflict). Nothing listens for connectivity. resetForTesting closes it.
SyncEngine takes an optional httpClient (the session client by default, as before). Nothing changes in an app.