Why Is My Jest Test Suite So Slow?

The simple mistake undermining Jest’s performance

Steven Lemon
Bits and Pieces
Published in
12 min readJan 11, 2023

--

Our team is a couple of months into developing a new application, and our suite of unit 240 tests takes 46 seconds to run. That duration is not excessive yet, but it’s increasing in proportion to the number of tests. In a couple of months, it’ll take a couple of minutes to run our tests.

--

--

Lead Software Engineer and occasional Scrum Master. Writing about the less technical parts of being a developer.