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:...
Simple Software Engineer
Markdown supported · ⌘↵ to post
Dylan Lacey
I was a bit worried here that you'd advocate for just re-running flaky tests and not doing anything else, but this is a neat trick!