Did you know @vitest.dev has `expect.poll`? It reruns an assertion until it passes (or times out). You can configure how many times the `expect.poll` callback should run with custom interval and timeout options! No need wrapping everything in `vi.waitFor` More in the docs vitest.dev/api/expect.h...
42 likes 0 replies
?