-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support more component return types #221
Conversation
cc4f31f
to
552e4e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Andre,
I had a quick look over this and had a couple of questions and suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback! <3 Let me know if you have any additional thoughts
496d6c6
to
fad4801
Compare
Looking into this more I think the behavior I have here doesn't quite match React's enzyme adapter so gonna investigate a bit more and add some tests to assert this behavior |
Okay, I think this change to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the updated tests.
Support more kinds of return types from components, using Preact's
ComponentChild
type as a guide.Also fixes a bug where
ref
andkey
weren't restored on props innodeToElement
.