Skip to content

Test Cases ​

🕙 Start time⌛ Duration
11/25/2026, 4:37:11 PM3.261 s
✅ Passed❌ Failed⏩ Skipped🚧 Todo⚪ Total
Test Suites80008
Tests2300023

11 passed, 0 failed, 0 skipped, 0 todo, done in 223.12947899999972 s

✅ indexedDB Storage adapter
   ✅ creates its object store and persists one snapshot by key
   ✅ releases its connection on versionchange so another adapter can upgrade
   ✅ waits for a closing v1 connection to finish its put before hydrating v2
   ✅ times out blocked and queued opens without upgrading the database after timeout
   ✅ provisions stores at a shared schema version and preserves snapshots across concurrent opens and reloads
   ✅ leaves an existing application store and native version intact on a schema name collision
   ✅ honors subsequent native schema upgrades to a database with multiple stores
   ✅ bounds the schema probe when an existing writer holds the database
   ✅ validates and writes atomically across independent connections to the same key
   ✅ reopens when a new operation overlaps an explicit close
   ✅ fails explicitly when IndexedDB is unavailable

2 passed, 0 failed, 0 skipped, 0 todo, done in 4.56541500000003 s

✅ in-memory Storage
   ✅ loads, saves and clears snapshots through an optional clone boundary
   ✅ requires a non-empty identifier

7 passed, 0 failed, 0 skipped, 0 todo, done in 36.14035700000022 s

✅ localStorage adapter
   ✅ persists, loads and clears a JSON snapshot under its configured key
   ✅ supports custom serialization without coupling the core contract to JSON
   ✅ validates the decoded snapshot before encoding and writing in the same turn
   ✅ preserves the stored data when decoding, validation or encoding rejects a write
   ✅ rejects a stale versioned save scheduled alongside a schema upgrade
   ✅ uses the injected backend when accessing browser storage is denied
   ✅ fails explicitly when no browser backend was provided or available

3 passed, 0 failed, 0 skipped, 0 todo, done in 39.855857000000015 s

✅ versioned writes
   ✅ rejects an overlapping v1 save when the v2 write takes effect first
   ✅ migrates once on load and sends subsequent saves through the atomic operation alone
   ✅ checks the raw schema without migrations when the connector only offers ordinary writes