Skip to content

Function: recordCommits()

recordCommits<T>(cell): CommitRecorder<T>

Defined in: testing.ts:182

Record every value a cell commits — for streaming assertions: a stream: "commit" generator that yields three partials produces three entries; stream: "latest" produces one. The recorder is its own reactive owner, so it works on cells from any harness (or none).

Type Parameters

T

T

Parameters

cell

Cell<T>

Returns

CommitRecorder<T>