Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Add support for root as host node #5

Closed
eddyerburgh opened this issue Nov 21, 2017 · 1 comment
Closed

Add support for root as host node #5

eddyerburgh opened this issue Nov 21, 2017 · 1 comment

Comments

@eddyerburgh
Copy link
Contributor

Currently we only support the root being a Functional component, or a Class component.

There is code to handle root host nodes, but it's buggy and there are tests that aren't passing.

See this test for an example—https://github.com/bbc/enzyme-adapter-inferno/blob/master/test/specs/ReactWrapper.spec.js#L283

@eddyerburgh
Copy link
Contributor Author

This wasn't an issue with host node support.

The issue was that enzyme was comparing a raw vnode with a converted RST node. This PR fixes this issue—enzymejs/enzyme#1423

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant