Taming Flaky UI Tests with Mocha's Built‑In Retry Feature
Mocha's native retry feature lets you automatically re‑run flaky UI tests up to a configurable number of times, reporting the attempt count so you can see exactly how often a test needed a second chance.