mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-11 19:33:55 +01:00
The IndexedDB stores are the desktop device's primary copy of the food log and the *only* copy of its photos -- photos never sync -- and their wrapper-mirror fallback is what makes a wiped Chrome profile recoverable. All of that was invisible to the suite: the files import `idb_browser.dart`, which cannot be imported outside a web compile, so they were simply absent from the VM test run rather than covered. Splitting the store classes from the browser-factory `open…()` functions lets them run against `idb_shim`'s in-memory backend on the plain VM, which is what the flutter-desktop-to-chrome skill recommends the shim for. Twelve tests now pin the round-trip, the mirror write, the recover-from-mirror path, and the no-wrapper-running case (a plain browser tab, where the app must still work). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app_settings_service_test.dart | ||
| background_sync_service_test.dart | ||
| blob_store_io_test.dart | ||
| day_status_service_test.dart | ||
| due_slot_check_test.dart | ||
| foodbank_service_test.dart | ||
| fuzzy_test.dart | ||
| github_device_auth_test.dart | ||
| indexeddb_stores_test.dart | ||
| log_storage_service_test.dart | ||
| notification_service_test.dart | ||
| photo_attach_service_test.dart | ||
| sync_merge_test.dart | ||
| sync_service_test.dart | ||
| sync_settings_test.dart | ||