Skip to content
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

make test in react-test-renderer painless #1121

Merged
merged 3 commits into from
Jun 1, 2018
Merged

Conversation

nihgwu
Copy link
Contributor

@nihgwu nihgwu commented May 24, 2018

ref #1117

Copy link
Contributor

@wuweiweiwu wuweiweiwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nihgwu Can you add a test that uses 'react-test-renderer' to render Grid?

Looks good!

@nihgwu
Copy link
Contributor Author

nihgwu commented May 24, 2018

Done, without this change, the tests will fail

@nihgwu
Copy link
Contributor Author

nihgwu commented May 24, 2018

BTW, can we release a new version? that breaks all my test cases, now I have to use a wrapper to apply the mock option, also I don't think that's the desired solution, as that would make people thought I was using refs in cDM of my Table but that's not true

@wuweiweiwu
Copy link
Contributor

@nihgwu yep We'll release a minor soon. Probably after I fix #1119 . So for now, you'll have to use createNodeMock locally

@wuweiweiwu
Copy link
Contributor

Thanks for contributing @nihgwu !

@wuweiweiwu wuweiweiwu merged commit 5878125 into bvaughn:master Jun 1, 2018
@nihgwu nihgwu deleted the neo/test branch June 1, 2018 10:25
@ivosh
Copy link

ivosh commented Jun 25, 2018

Please can a new version be released, now that #1119 has been fixed? As for @nihgwu , this problem completely breaks all my tests.

@wuweiweiwu
Copy link
Contributor

this is released in 9.20.0!

@wuweiweiwu
Copy link
Contributor

a work around is to use createNodeMock

@ivosh
Copy link

ivosh commented Jun 27, 2018

@wuweiweiwu Excellent! This is really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants