@flow-state-dev/scheduled/testing
Interfaces
ScheduleIndexConformanceOptions
Properties
cleanup?
cleanup?: (index) => void | Promise<void>;
Tear down the index returned by the last createIndex call.
Optional — implementations using throwaway storage may omit it.
Parameters
index
Returns
void | Promise<void>
createIndex
createIndex: () =>
| ScheduleIndex
| Promise<ScheduleIndex>;
Construct a fresh, empty ScheduleIndex for one test. Each test
gets its own instance — implementations may share underlying
storage as long as cleanup resets state between tests.
Returns
| ScheduleIndex
| Promise<ScheduleIndex>
Functions
createScheduleIndexConformanceTests()
function createScheduleIndexConformanceTests(label, options): void;
Register the standard ScheduleIndex conformance test suite under
the given label. Call inside a describe block in the host package's
test file.
Parameters
label
string
options
ScheduleIndexConformanceOptions
Returns
void