React - unit testing HOC's wrapped component - C-Hive

added by JavaScript Kicks
3/7/2019 7:21:18 AM

357 Views

First and foremost, let's just scratch the surface a little bit and try to understand what happens behind the scenes. Whenever a component - that is expected to be tested - is wrapped with a HOC, there isn't any way to access that with a simple shallow rendering - I hear the folks saying you can use mount rendering, but this might cause unexpected behaviors due to the rendering of the whole tree.


0 comments