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.