Testing & QA
Kent C. Dodds·Nov 14, 2016·9 min readBy Kent C. Dodds 🐨
@kentcdodds
Machine LearningTestingPerformanceJavaScriptEngineering Culture
AI summary
This article documents a team's transition from the AVA testing framework to Jest at PayPal after encountering significant performance bottlenecks and stability issues. By benchmarking test execution speeds, the author demonstrates that Jest provided superior parallelization and resource management for large, mixed sync/async test suites.
Key points
- Test framework performance degradation often correlates with suite size and the mix of synchronous versus asynchronous tests.
- Parallel test execution strategies in frameworks like Jest can significantly reduce runtime overhead as the test base grows.
- Instrumentation overhead and assertion libraries (like power-assert) can introduce unexpected runtime complexity and debugging challenges.
- Relying on git hooks for CI quality checks requires a high-performance test suite to prevent developer friction and subsequent process circumvention.