API Reference | fast-check | Property based testing framework
    Preparing search index...

    Interface SchedulerConstraints

    Constraints to be applied on scheduler

    Since 2.2.0

    interface SchedulerConstraints {
        act: (f: () => Promise<void>) => Promise<unknown>;
    }
    Index

    Properties

    Properties

    act: (f: () => Promise<void>) => Promise<unknown>

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

    Since 1.21.0