Skip to content

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.

optional dispose?: () => 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.

Promise<void>


optional generateId?: () => 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.

string


optional generateInvalidId?: () => 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.

string


optional poisonTransaction?: (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.

any

Promise<void>


optional reset?: () => 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.

Promise<void>


stateAdapter: StateAdapter<any, any>

Defined in: packages/core/src/conformance/state-adapter-cases/types.ts:9