-
-
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
Add support for some pseudo selectors #1537
Conversation
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, this looks great!
packages/enzyme/src/selectors.js
Outdated
@@ -138,13 +138,38 @@ function matchAttributeSelector(node, token) { | |||
} | |||
} | |||
|
|||
|
|||
function matchPseudoSelector(node, token, root) { | |||
// console.log(token) |
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.
remove?
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.
Oops
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.
Looks great, I love how easy it was to implement these 😍
(linking back to #703) |
Adds some initial support for pseudo selectors, There are more that could be added but before I did that I started with the few I miss the most in order to get some feedback