-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
React Fragments and components do not output any text #2028
Comments
@astorije react-test-renderer must always have the exact same minor as react and react-dom; can you try updating it to 16.8? |
(I'm able to reproduce this regardless, so that's probably a red herring - good to fix anyways tho) |
@ljharb, thanks for looking into this! We don't pull
I can see that Now that you have fixed the issue in 8bbb61d, is the resolution to wait for a new version bump of the adapter(s), or is there anything else to do? Thanks again! |
If you have a lockfile, you'll have to manually update the transitive dependency so that the minor versions match - or, easier, you can explicitly depend on 8bbb61d is released in |
This is a follow-up of #1799 (comment) after @ljharb rightfully mentioned creating a new issue.
The issue is a little confusing to me, and I'm not sure I titled it too well, so feel free to re-title it.
Current behavior
Assuming the following test:
and the following helper component,
Title
:The test fails when running against the following component:
wrapper.text()
does not contain anything:What is bizarre to me is that all the following derivatives of the
Foobar
component (one small change at a time) pass the same test:Expected behavior
The failing test should pass just like the others.
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: