Running 1000 tests in 1s (2022)
Summary
This article analyzes how Preact achieves a 1000-test 1-second frontend test suite by trimming test isolation to only what is necessary. It covers baseline timing, the trade-offs of test isolation, and practical techniques (per-test containers, DOM reuse) to speed up tests, with code examples and historical context on test runners.