How to run a (flaky) test multiple times using Jest
Aug 19, 2022 · 1 min read · When you discover that your test is flaky - it might be a good idea to run it multiple times to further validate that what you've done to fix actually (maybe) fixes it. Using Jest it's pretty easy. You can replace test("it was flaky", () => {}) with:...
GDylan commented