qntm / t-a-i

Converts Unix milliseconds to and from International Atomic Time (TAI) milliseconds
MIT License
43 stars 2 forks source link

Stop using Jest, use Mocha instead #50

Closed qntm closed 1 year ago

qntm commented 1 year ago

I discovered that Jest is ridiculously slow to load and run tests by comparison with Mocha. This isn't significant for t-a-i where Jest takes ~4.8 seconds to run all the tests and Mocha takes more like ~1.6 end-to-end (that's including the startup time for npm in both cases), but for some other projects of mine (including at work) this could be significant, saving multiple minutes of execution, a dozen times per day. So, this is in part an exercise to explore the difficulties of a Jest-to-Mocha migration.