Migrating from Mocha to Jest

Running our test suite with Mocha took 12+ minutes. In CI with our beefy build machines we’re now able to run the entire Jest suite in 4 minutes 30 seconds.

Gary Borton
Jun 15, 2017 · 6 min read
Come check out our new digs at 999 Brannan, our second office in San Francisco!
Comparison of Mocha vs Jest, testing that 1 + 2 === 3

Minimal Changes to Tests

Simplified Testing Architecture

Improved Performance

Reducing Flakiness

Taking Performance a Step Further

Developer Sentiment


Airbnb Engineering & Data Science

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io

Thanks to Joe Lencioni and Adam Neary.

Gary Borton

Written by

Software Engineer @airbnb.

Airbnb Engineering & Data Science

Creative engineers and data scientists building a world where you can belong anywhere. http://airbnb.io