percyhanna / rquery

A testing utility that provides React tree traversal similar to jQuery
MIT License
56 stars 9 forks source link

Can't find child component using Shallow Rendering. #36

Closed BernardDoherty closed 8 years ago

BernardDoherty commented 8 years ago

Hello,

I can't find a component using Shallow Rendering with $R(component).find('MyComponentName'). It just returns a rquery object with a length of zero. Does this work with Shallow Rendering? Thanks!

percyhanna commented 8 years ago

Shallow rendering has been supported since #29, which was released as version 4.1.0. Can you provide a small reproducible example showing the failure? It's possible the tests are missing a specific scenario, but as far as I know it works properly.

BernardDoherty commented 8 years ago

Hi, thank for the reply. I was able to get it working. Our team is now using rquery. Very helpful in speeding up our testing!