Skip to main content

Interface: SchedulerConstraints

Defined in: packages/fast-check/src/arbitrary/scheduler.ts:12

Constraints to be applied on scheduler

Remarks​

Since 2.2.0

Properties​

act​

act: (f) => Promise<unknown>

Defined in: packages/fast-check/src/arbitrary/scheduler.ts:17

Ensure that all scheduled tasks will be executed in the right context (for instance it can be the act of React)

Parameters​

ParameterType
f() => Promise<void>

Returns​

Promise<unknown>

Remarks​

Since 1.21.0