We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hey! While testing a component with shallow its children stateless components sometimes display their names sometimes don't.
shallow
If I run jest in watch mode the wrapper.text() shows: <Header /><Connect(Notifications) /><Footer />
wrapper.text()
<Header /><Connect(Notifications) /><Footer />
But if I run jest normally the content is: < /><Connect(Component) />< />
< /><Connect(Component) />< />
If I add a displayName to the stateless components it works in both modes but it's weird, right?
displayName
The text was updated successfully, but these errors were encountered:
@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.
Sorry, something went wrong.
No branches or pull requests
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?The text was updated successfully, but these errors were encountered: