enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.95k stars 2.01k forks source link

Fail to parse selectors starting with double hyphen #2543

Open ManhNV103 opened 3 years ago

ManhNV103 commented 3 years ago

Hi, I got this error when using the find() function with className starting with double hyphen (--) - shortened BEM syntax

Screen Shot 2021-11-09 at 1 42 01 pm

And the error I got is

Screen Shot 2021-11-09 at 1 43 10 pm

I saw from this ticket https://github.com/enzymejs/enzyme/issues/1339 that this issue has been fixed, but it does not seem to be the case because multiple other people also face the same issue.

I use Enzyme with TypeScript:

Thank you.

ljharb commented 3 years ago

It's fixed, but unreleased in rst-selector-parser: see how there's no release tags on https://github.com/aweary/rst-selector-parser/commit/d4bdc6379db94eccb4e2bed390a5fa44085f1c90.

cc @aweary any chance we could get a release of rst-selector-parser? (if you npm owner add me, i can publish it myself - i have no idea how semantic-release works so i don't want to monkey with that)