Waits until the provided condition function returns true.
The condition function can be synchronous or asynchronous (returning a Promise).
The function checks the condition at regular intervals specified by intervalMs.
Note: This function shouldn't be used inplace of the vi.waitFor function
from Vitest. This function is meant to be used in non-test code.
Waits until the provided condition function returns true.
The condition function can be synchronous or asynchronous (returning a Promise). The function checks the condition at regular intervals specified by
intervalMs
.Note: This function shouldn't be used inplace of the
vi.waitFor
function from Vitest. This function is meant to be used in non-test code.