Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Migrate back from Jest #5724

Open
felixfbecker opened this issue Sep 25, 2019 · 3 comments
Open

Migrate back from Jest #5724

felixfbecker opened this issue Sep 25, 2019 · 3 comments

Comments

@felixfbecker
Copy link
Contributor

felixfbecker commented Sep 25, 2019

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.

@keegancsmith
Copy link
Member

For the beforeAll issue do these help? jasmine/jasmine#577 and jestjs/jest#2713

@beyang
Copy link
Member

beyang commented Oct 7, 2019

Using Jest Circus (as outlined in jestjs/jest#2713) fixed the beforeAll issue for me.

I'm happy to go with whatever option @felixfbecker thinks is best/quickest. I've also felt these pains.

@felixfbecker
Copy link
Contributor Author

@beyang do you have a branch for switching to Jest Circus?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants