Skip to content

Migrate back from Jest

Created by: felixfbecker

Every week I see problems caused by Jest. A non-exhaustive list:

I believe it might be better to migrate back to mocha (or a differrent test runner that doesn't have these problems).

Iirc the reasons to switch to Jest was mostly that there was more things that "just work" out of the box and docs on how to test React components with snapshot tests. However, it seems many of these things actually don't work correctly, and then you are faced with less flexibility to fix them. With mocha, these would take some effort to setup because they don't work out of the box, but would all be possible because mocha only concerns itself with running tests and everything else can be setup on top of it.