Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Formalize Node type in react-testing#793

Merged
lemonmade merged 4 commits intomasterfrom
export-node-type
Jul 15, 2019
Merged

Formalize Node type in react-testing#793
lemonmade merged 4 commits intomasterfrom
export-node-type

Conversation

@lemonmade
Copy link
Member

This PR formalizes the Node type. Previously, it was only used in the matchers to mean "the root or an element". However, it's more accurate to say that both Root and Element are Nodes, and that Node contains the type information for all the methods/ properties they have in common. This PR does just that.

Supersedes #789

@lemonmade lemonmade merged commit c724032 into master Jul 15, 2019
@lemonmade lemonmade deleted the export-node-type branch July 15, 2019 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant