Jest in Strict Mode – Finding and Preventing Flaky Tests (⚡️)
summary
Wayfair runs a test suite of over 13,000 Jest tests and discovers a surprising rate of hidden failures. The team builds a Jest plugin that enforces assertion-count enforcement and uses zone-based async tracking to catch promises and timers that fire after test completion. The tooling surfaces stack traces to the offending lines, prevents new flaky tests from entering the repo, and reveals about 3% of tests with false positives.
AI-written summary · about
chapters (6)
- 0:00Start
- 2:54Test That Never Breaks
- 3:39Example of React Test
- 10:10Zone Js Library
- 12:17Live Demo
- 13:24Alternatives
related talks
28mTest flakiness; methods for dealing with flaky tests
46mThe state of the Art in Tackling Flaky Tests
28mThe State of Art in Tackling Flaky Tests
21mTests That Help you Find Defects Faster
27mBuilding High-Quality JavaScript Tools
25mBuilding High-Quality JavaScript Tools
36mLiving with flaky tests
15mHow to (not) write a flaky test
