flushMicrotasks and flushTimers

Got it. Will fix and test. Thanks.