Function: stepLedgerConformanceSuite()
stepLedgerConformanceSuite(
name,factory,api):void
Defined in: packages/workflow-engine/src/testing/persistence-conformance.ts:3150
Shared suite verifying that an implementation of StepLedger follows the
contract documented on the interface: insert-if-absent claim, the patch
rule that undefined leaves a field alone while any other value -- null
included -- is written, compareAndSet with and without a pinned attempt,
seq-ordered list, and stage-scoped clear / clearExcept.
The null-result cases are here because an adapter that quietly drops a
{ result: null } write leaves the previous attempt's value sitting in the
row. That is invisible while a re-run deletes the row, and permanent once a
re-run preserves one: the step completes with no value, the row still holds
the old one, and every replay reads it back forever.
Parameters
name
string
factory
api
Returns
void