Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants