-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
React examples are failing #542
Comments
It definitely does work with 0.14 but we haven't had time to update the jest examples. Feel free to send us a pull request! :) |
This should be fixed with #550 |
Ok thanks! The examples are still failing on my computer but it seems that I'm the only one having this issue, I'll investigate. |
If you clone jest from master and try the examples from there, do they work? |
Cloning right now from master and trying to run the examples: everything works except for the React examples. It reports a syntax error for the JSX notation. The JSX files must not be properly transpiling to ES5. By downgrading to babel-jest below 6.0, the react tests pass. |
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. |
Hi,
I just tried to run
jest
examples with react:And I get this error:
Note that if I force the
react
version to0.13.3
, it works fine, so the issue is probably due to React0.14.0
.It might be because
react-tools
is deprecated: https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#deprecation-of-react-tools and this example usesreact-tools
to transform jsx.EDIT:
The
react-es6
example works because it's using react0.13.x
but if I change it to0.14.x
here:https://github.com/facebook/jest/blob/master/examples/react-es6/package.json#L3
I have the exact same error as above, and this one doesn't use
react-tools
(by the way, it should be removed from thispackage.json
because it's not used in this example).So it seems that
jest
doesn't work with react0.14.0
.The text was updated successfully, but these errors were encountered: