You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestUtils currently has scryRenderedDOMComponentsWithClass and the find variant, but nothing like findRenderedDOMComponentWithID. This functionality would make testing a lot easier.
The text was updated successfully, but these errors were encountered:
feifanzhou
changed the title
Add find/scry by id to test utils
Add find/scry by ID to test utils
May 28, 2014
chenglou
added a commit
to chenglou/react
that referenced
this issue
Jun 6, 2014
We're not planning to add more utils like this to TestUtils. You can always implement this locally in your project as a helper if you want to, but we're planning to move towards shallow testing (i.e., TestUtils. createRenderer) in the future.
TestUtils currently has
scryRenderedDOMComponentsWithClass
and thefind
variant, but nothing likefindRenderedDOMComponentWithID
. This functionality would make testing a lot easier.The text was updated successfully, but these errors were encountered: