diet-guard/app/test/services
Krzysztof kuhy Rudnicki 2231850bfc app: test the IndexedDB stores instead of shipping them unverified
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>
2026-07-20 16:56:15 +02:00
..
app_settings_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
background_sync_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
blob_store_io_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
day_status_service_test.dart Add budget-adherence calendar, streaks, and freely-editable synced budget 2026-07-13 21:31:45 +02:00
due_slot_check_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
foodbank_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
fuzzy_test.dart Add food bank, edit-entry, and app settings screens; history redesign 2026-07-04 05:18:32 +02:00
github_device_auth_test.dart Add OAuth device flow, background notifications, and fix AGP9 release crash (Milestones 3–4) 2026-06-25 17:29:23 +02:00
indexeddb_stores_test.dart app: test the IndexedDB stores instead of shipping them unverified 2026-07-20 16:56:15 +02:00
log_storage_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
notification_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
photo_attach_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
sync_merge_test.dart Add budget-adherence calendar, streaks, and freely-editable synced budget 2026-07-13 21:31:45 +02:00
sync_service_test.dart app: run the companion app's desktop target as a web build 2026-07-20 16:31:32 +02:00
sync_settings_test.dart Point sync at the consolidated utils/syncs monorepos 2026-07-10 14:12:16 +02:00