-
Notifications
You must be signed in to change notification settings - Fork 718
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
Exercise 5.extra-3: toMatchInlineSnapshot causes JSX parsing error #85
Comments
That's odd. It seems to be working for me and CI is passing. Are you on the latest version? |
I'm on Tested after clearing out I can also repro this with the final version of the test file - causing it to fail by changing the password error message in the
I was on |
Ah, I see what's going on. So it's updating the snapshot that is causing the issue. The problem is that jest can't find our babel config (because it's hidden in react-scripts). Adding |
The 3rd extra credit for exercise 5 suggests using inline snapshot testing to avoid manually copying error messages.
However, calling
toMatchInlineSnapshot()
causes the test to error with the following message:This appears to be related to the recent update to react-scripts 5 as suggested by this issue:
facebook/create-react-app#11928
This can be worked around by using
toMatchSnapshot()
The text was updated successfully, but these errors were encountered: