async function callAndRunTimers(fn) {
  jest.useFakeTimers();
  await fn();
  jest.runAllTimers();
  jest.useRealTimers();
}
/**
 * Call function running all timers immediately.
 * Useful for triggering background cleanups.
 */
Call function running all timers immediately.
Useful for triggering background cleanups.
Call function running all timers immediately . Useful for triggering background cleanups .
async function callAndRunTimers(fn) {
  jest.useFakeTimers();
  await fn();
  jest.runAllTimers();
  jest.useRealTimers();
}
async function callAndRunTimers ( fn ) { jest . useFakeTimers ( ) ; await fn ( ) ; jest . runAllTimers ( ) ; jest . useRealTimers ( ) ; }
Call function running all timers immediately.
Call function running all timers immediately .