IndexedDB — fake-indexeddb Integration #18

Closed
opened 2026-06-17 14:01:50 +00:00 by Artur · 1 comment
Owner

Goal

Provide indexedDB and all IDB globals via fake-indexeddb package.

What to Build

  1. bun add fake-indexeddb
  2. In createIsolatedContext: import fake-indexeddb/auto
  3. Verify IDBFactory, IDBOpenRequest, IDBDatabase, IDBObjectStore, IDBTransaction, IDBIndex

Tests (110%)

  • indexedDB is defined
  • indexedDB.open() returns IDBOpenRequest
  • onsuccess fires for open/create
  • createObjectStore works
  • put/get roundtrip
  • deleteDatabase works
  • transaction commits correctly
  • IDBKeyRange works
  • multiple databases are isolated
  • works inside isolated context

Definition of Done

  • fake-indexeddb installed
  • IDB globals available in page context
  • Tests pass with 100% line coverage
## Goal Provide `indexedDB` and all IDB globals via `fake-indexeddb` package. ## What to Build 1. `bun add fake-indexeddb` 2. In createIsolatedContext: import fake-indexeddb/auto 3. Verify IDBFactory, IDBOpenRequest, IDBDatabase, IDBObjectStore, IDBTransaction, IDBIndex ## Tests (110%) - indexedDB is defined - indexedDB.open() returns IDBOpenRequest - onsuccess fires for open/create - createObjectStore works - put/get roundtrip - deleteDatabase works - transaction commits correctly - IDBKeyRange works - multiple databases are isolated - works inside isolated context ## Definition of Done - [ ] fake-indexeddb installed - [ ] IDB globals available in page context - [ ] Tests pass with 100% line coverage
Author
Owner

IndexedDB — fake-indexeddb Integration. Implementiert via fake-indexeddb package. Tests: indexeddb.test.ts.

IndexedDB — fake-indexeddb Integration. ✅ Implementiert via fake-indexeddb package. Tests: indexeddb.test.ts.
Artur closed this issue 2026-06-18 06:28:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glow-all/true-headless-browser#18
No description provided.