StoreTckOptions
@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?โ
readonlyoptionalcapabilities?:StoreCapabilities
Defined in: libs/act-tck/src/store-tck.ts:189
Optional capabilities flags โ see StoreCapabilities.
default_factory?โ
readonlyoptionaldefault_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:
- Construction throws. The adapter has no safe default and says so โ an operator sees the error immediately.
- Construction succeeds and the store round-trips, including a second commit that advances the version.
Construction succeeds,This is the shape the suite exists to catch (#1443: a zero-config SQLite store defaulted to a per-connection private in-memory database, socommitreports success, and the data is not there.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โ
factoryโ
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โ
nameโ
readonlyname:string
Defined in: libs/act-tck/src/store-tck.ts:154
Display name for the implementation under test.