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

Node Jest Snapshot testing hangs forever #17040

Closed
MayasHaddad opened this issue Nov 15, 2017 · 6 comments
Closed

Node Jest Snapshot testing hangs forever #17040

MayasHaddad opened this issue Nov 15, 2017 · 6 comments

Comments

@MayasHaddad
Copy link

MayasHaddad commented Nov 15, 2017

  • Version: v9.2.0
  • Platform: 17.2.0 Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
  • Subsystem: I don't know how to get this information

Steps to reproduce:

  1. clone this repo: https://github.com/ferrannp/react-native-testing-example
  2. execute on both node 8 and 9
  3. in 9 test hangs

node 8: (works as expected)
8prfwvrsqc

node 9: (hangs forever)
pyxjuhskbd

I'm not even sure this issue is not due jest

Apologies if issue is not related to node or v8 🙏

@bnoordhuis
Copy link
Member

@fhinkel Maybe you have an idea?

@apapirovski
Copy link
Contributor

There's some weirdness around jest & node 9. There's a PR open that has some work in it to make node 9.x work but it seems like it might be stuck on this same 'hanging' problem. jestjs/jest#4851

@rogerkerse
Copy link

It is happening to me and my coworker as well. Only with node 9. Node 8 works well so it seems there is some kind of compatibility issue between 9 and jest

@SimenB
Copy link
Member

SimenB commented Dec 11, 2017

@MayasHaddad Our issue in jest was a too old react-native, can you try upgrading to a later release?

@MayasHaddad
Copy link
Author

MayasHaddad commented Dec 16, 2017

@SimenB upgraded react-native@0.51.0 and the issue isn't reproducible anymore.

Closing this issue.

Thank you!

@wontonst
Copy link

For anyone who still has this issue, I found that --forceExit is a quick way to get unblocked.

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

No branches or pull requests

6 participants