Skip to content

Add support for some pseudo selectors - #1537

Merged
ljharb merged 1 commit into
enzymejs:masterfrom
jquense:pseudo-selectors
Jun 26, 2018
Merged

ljharb merged 1 commit into
enzymejs:masterfrom
jquense:pseudo-selectors

Conversation

@jquense

@jquense jquense commented Feb 23, 2018

Copy link
Copy Markdown
Contributor

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

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great!

Comment thread packages/enzyme/src/selectors.js Outdated


function matchPseudoSelector(node, token, root) {
// console.log(token)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops

@aweary aweary left a comment

Copy link
Copy Markdown
Collaborator

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 😍

@ljharb
ljharb force-pushed the pseudo-selectors branch from f861a93 to b21ff0d Compare June 26, 2018 07:15
@ljharb
ljharb merged commit b21ff0d into enzymejs:master Jun 26, 2018
@ljharb

ljharb commented Jun 26, 2018

Copy link
Copy Markdown
Member

(linking back to #703)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants