Reference

act

Runs a test action and flushes reactive effects after it settles.

Signature

function act<T>(fn: (): T | Promise<T>): Promise<T>