TLDR Web Dev · OPINIONS & ADVICE
HOW DO YOU ADDRESS AND PREVENT FLAKY TESTS?
Summary from the TLDR Web Dev newsletter
Flaky tests are when tests sometimes pass and sometimes don't. Most of the time, they occur due to tests being poorly written and not hermetic. Sometimes, they can be due to resource constraints or data conflicts in the test environment. To prevent flaky tests, developers should catch them early by running tests often and reduce dependencies on external factors as much as possible.