SchedulerAct: ((f) => Promise<void>)

Function responsible to run the passed function and surround it with whatever needed. The name has been inspired from the act function coming with React.

This wrapper function is not supposed to throw. The received function f will never throw.

Wrapping order in the following:

  • global act defined on fc.scheduler wraps wait level one
  • wait act defined on s.waitX wraps local one
  • local act defined on s.scheduleX(...) wraps the trigger function

Type declaration

    • (f): Promise<void>
    • Parameters

      • f: (() => Promise<void>)
          • (): Promise<void>
          • Returns Promise<void>

      Returns Promise<void>

Remarks

Since 3.9.0