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

Weird behavior with jest #611

Closed
gilbarbara opened this issue Sep 27, 2016 · 1 comment
Closed

Weird behavior with jest #611

gilbarbara opened this issue Sep 27, 2016 · 1 comment

Comments

@gilbarbara
Copy link

gilbarbara commented Sep 27, 2016

hey!
While testing a component with shallow its children stateless components sometimes display their names sometimes don't.

If I run jest in watch mode the wrapper.text() shows:
<Header /><Connect(Notifications) /><Footer />

But if I run jest normally the content is:
< /><Connect(Component) />< />

If I add a displayName to the stateless components it works in both modes but it's weird, right?

@ljharb
Copy link
Member

ljharb commented Jul 6, 2018

@gilbarbara I'm going to close this, but if you can provide a minimal repro case, I'll be happy to reopen it and fix the issue.

@ljharb ljharb closed this as completed Jul 6, 2018
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

2 participants