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
[Bug]: updateSnapshot cannot parse jsx #12000
Comments
Here is the problematic line |
We can probably just add the syntax plugin? or can we improve the |
Better improve as I use also flow. Whats the point of root? |
No idea. @jeysal? |
I think this is the same thing (?) as what is discussed in #11741 |
also, gz on getting the number #12000 :P |
Hehe Ouch, didnt look that far for similar issue. Pretty old one. I guess i never updated snapshots last year. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This was fixed in #12760 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
27.3.1
Steps to reproduce
https://github.com/TrySound/jest-update-snapshot-bug
Install deps and run yarn jest --updateSnapshot
The problem is passed root to babel parser which is the directory of test file. This means each test directory need to have own babel.config.js
Expected behavior
Successfully parsed jsx and other syntax
Actual behavior
Failed with syntax error
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: