Skip to main content
Version: Current

CacheTckOptions

@rotorsoft/act-root


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

Type Alias: CacheTckOptions

CacheTckOptions = object

Defined in: libs/act-tck/src/cache-tck.ts:7

Options for runCacheTck.

Propertiesโ€‹

factoryโ€‹

readonly factory: () => Cache

Defined in: libs/act-tck/src/cache-tck.ts:20

Factory invoked before each test. Must return a fresh, empty cache โ€” tests assume zero starting entries. Any per-implementation tuning (max size, TTL, etc.) is the factory's responsibility, but the TCK itself sets โ‰ค 8 entries in any single test, so a default max of โ‰ฅ 8 is safe.

Returnsโ€‹

Cache


nameโ€‹

readonly name: string

Defined in: libs/act-tck/src/cache-tck.ts:12

Display name for the implementation under test. Becomes the top-level describe block in the vitest run.