-
comparing-javascript-test-runners
Comparing AVA, Jest, Mocha, and mocha-parallel-tests testing frameworks
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I've been running some performance comparison of different JavaScript test runners [1]. Jest comes out woefully behind everything else. To me personally that's a show stopper. However, Jest is popular and so I am clearly missing something. Looking through Github issues, it's also clear that addressing performance is not a priority. What is the priority? Who is Jest appealing to?
I'd really love to hear from people who, given a green light on tech choices, would pick Jest over, say, mocha or tape for their next project. Thank you!
[1] https://github.com/artemave/node-test-runners-benchmark
I did a comparison of Ava, Mocha, and Jest test runners: https://github.com/scraggo/comparing-javascript-test-runners
Jest is the slowest if running tests in parallel with Mocha >=8. Mocha is the slowest in its default serial mode.
My conclusion with Jest was this:
"Jest is recommended if you want to get tests up and running quickly. It has everything built in and requires very little configuration. The command line and GUI experience is unmatched. Finally, it's the most popular and makes an excellent pair with React."