StateConformanceFixture
StateConformanceFixture =
object
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:8
Fixture for the state adapter conformance suite. Used both as the factory return shape for runStateAdapterConformance and as the per-case context the conformance cases receive.
Properties
Section titled “Properties”dispose?
Section titled “dispose?”
optionaldispose?: () =>Promise<void>
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:37
Called once after all cases finish (pass or fail) to release resources. Consumed by the runner — cases ignore it.
Returns
Section titled “Returns”Promise<void>
generateId?
Section titled “generateId?”
optionalgenerateId?: () =>string
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:14
Generates a valid job ID matching the adapter’s configured generateId /
validateId. Used by tests that exercise the caller-supplied id path.
Returns
Section titled “Returns”string
generateInvalidId?
Section titled “generateInvalidId?”
optionalgenerateInvalidId?: () =>string
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:21
Generates an ID that the adapter’s validateId predicate must reject.
Supply this when the adapter is configured with a validateId so the
conformance suite can verify the rejection path; cases that need it are
skipped when this is absent.
Returns
Section titled “Returns”string
poisonTransaction?
Section titled “poisonTransaction?”
optionalpoisonTransaction?: (txCtx) =>Promise<void>
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:27
Forces the active transaction into an aborted state (e.g.
SELECT 1 FROM nonexistent_table). Cases that need it are skipped when
omitted. SQLite does not support mid-tx poisoning.
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”Promise<void>
reset?
Section titled “reset?”
optionalreset?: () =>Promise<void>
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:32
Called before each conformance case to restore a clean state. Typically
() => adapter.truncate(). Consumed by the runner — cases ignore it.
Returns
Section titled “Returns”Promise<void>
stateAdapter
Section titled “stateAdapter”stateAdapter:
StateAdapter<any,any>
Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:9