-
-
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
New lines are breaking the tests. #636
Comments
since this API is meant to be |
Hi, any updates on this ? |
@betovelandia to clarify, if your test cases are exactly the JSX elements you originally posted I believe it doesn't work because the first case has leading and trailing spaces around the text and the second one doesn't, see http://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=latest%2Creact%2Cstage-2&targets=&browsers=&builtIns=false&experimental=false&loose=false&spec=false&code=var%20leadingSpace%20%3D%20%3Cli%3E%0A%20%20%3Ca%3E%20All%20Operations%20%3C%2Fa%3E%0A%3C%2Fli%3E%0A%0Avar%20newLine%20%3D%20%3Cli%3E%0A%20%20%3Ca%3E%0A%20%20%20%20All%20Operations%0A%20%20%3C%2Fa%3E%0A%3C%2Fli%3E%0A%0Avar%20noLeadingSpace%20%3D%20%3Cli%3E%0A%20%20%3Ca%3EAll%20Operations%3C%2Fa%3E%0A%3C%2Fli%3E&playground=true for comparison of the compiled output of the two cases can you confirm whether this is indeed the issue? |
Hey guys, so when I look for an element that is in the tree this way:
This works just fine on this structure:
But it fails on this one (notice the new lines):
Just because of the new lines, this shouldn't be happening right?, maybe I'm doing something wrong ?
The text was updated successfully, but these errors were encountered: