-
-
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
Using <React.Fragment> prints warning with enzyme's mount with IE11 #1503
Comments
See #1213; fragments aren't properly supported yet. |
I knew about that issue, but because my problem only occurs on IE11 I thought it could be a different thing. I'll wait for #1213 then. Thanks. |
This problem appears in the development environment, the production environment did not. |
@sanshuiwang since enzyme is a testing framework, and tests are only run in a development environment, it's definitely not something that can be ignored. |
@sylvain-hamel can you still reproduce this with latest enzyme? if not, please close; if so, can you provide the component code that's erroring? |
I'm going to close this, pending repro info. |
I have a component that returns a
<React.Fragment>
object. When Imount
the component usingenzyme
, in Internet Explorer 11, then React prints out this warning:Followed by this warning:
About the 2nd warning, I'm pretty sure it's confusing the Fragment "array" with a common JSX array and it's trying to validate that each of the Fragment "element" has a key.
More info:
Current behavior
Some warnings are printed
Expected behavior
No warnings should be printed
Your environment
Windows, Internet Explorer, Karma, Jasmine
API
Version
Adapter
The text was updated successfully, but these errors were encountered: