Skip to main content
Version: Current

StoreTckOptions

@rotorsoft/act-root


@rotorsoft/act-root / act-tck/src / StoreTckOptions

Type Alias: StoreTckOptions

StoreTckOptions = object

Defined in: libs/act-tck/src/store-tck.ts:150

Options for runStoreTck.

Propertiesโ€‹

capabilities?โ€‹

readonly optional capabilities?: StoreCapabilities

Defined in: libs/act-tck/src/store-tck.ts:189

Optional capabilities flags โ€” see StoreCapabilities.


default_factory?โ€‹

readonly optional default_factory?: () => Store | Promise<Store>

Defined in: libs/act-tck/src/store-tck.ts:185

Constructs the adapter the way a first-time user does: with its own documented defaults and nothing else โ€” () => new MyStore().

Supplying it opts into the default-configuration suite, which allows exactly two outcomes and outlaws the third:

  1. Construction throws. The adapter has no safe default and says so โ€” an operator sees the error immediately.
  2. Construction succeeds and the store round-trips, including a second commit that advances the version.
  3. Construction succeeds, commit reports success, and the data is not there. This is the shape the suite exists to catch (#1443: a zero-config SQLite store defaulted to a per-connection private in-memory database, so seed's DDL landed where later statements could not see it โ€” every write was accepted and lost).

The suite never calls drop(), so it is safe to point at a default that resolves to a real shared database; it namespaces its stream with uid like every other case.

Returnsโ€‹

Store | Promise<Store>


factoryโ€‹

readonly factory: () => Store | Promise<Store>

Defined in: libs/act-tck/src/store-tck.ts:163

Returns the Store instance under test. Called once during beforeAll. The TCK does not assume a fresh store per test โ€” each test namespaces its streams via uid so they don't collide. The TCK calls store.seed() once before any test runs and store.dispose() after all tests, with store.drop() in between if any test needs it.

Returnsโ€‹

Store | Promise<Store>


nameโ€‹

readonly name: string

Defined in: libs/act-tck/src/store-tck.ts:154

Display name for the implementation under test.