-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Use react-is
in pretty-format
#7895
Comments
I would like to work on this. |
That's awesome @Prabhakar-17! Go for it 🙂 |
Running yarn install is giving me this error: weak compilation error. Any idea how to resolve this? |
I'd just remove the dependency in |
@SimenB How can I test my changes to make sure something else is not broken because of the change. yarn test result looks good, anything specific that needs to be done in this case? |
If our tests pass, then you're good - we have quite good test coverage on pretty-format. Looking forward to the PR! |
There's problem with the @types/react-is package. I have raised an issue here |
So that should be fixed? |
@SimenB Yes, it worked. Will submit the PR |
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. |
Right now we have manual
$$typeof
checks: https://github.com/facebook/jest/blob/af1ab24649798bcf0f7ce6ec5b3cf4ba2a53b5eb/packages/pretty-format/src/plugins/ReactElement.ts#L37-L72It would be cool to instead use
react-is
The text was updated successfully, but these errors were encountered: