Fix Timeouts and Speed Up Jest on CI
If you have a large or complex test suite, running Jest on CI can make your build especially slow or cause timeouts. Luckily, Jest has an option cut out for this.
jest --runInBand
runInBand
runs all tests serially inside the current process instead of creating a bunch workers.
Using this option, we were able to trim suite time above 20mins down to less than 4 mins. 🏎️😎