Many of the methods used in Enzyme’s API accept a selector as an argument. In this lesson we will go over the valid CSS, prop, object property, component displayName, and component constructor selectors that can be used as method arguments.
What about finding an actual React component:
wrapper.find(App)
instead of wrapper.find('App')
?
What about finding an actual React component:
wrapper.find(App)
instead of wrapper.find('App')
?
I think you can do that, here is the doc, https://github.com/airbnb/enzyme/blob/master/docs/api/selector.md#3-a-react-component-constructor
At 1:12 what is the relationship between the selector and the test? In other words, what is being tested? It would have been helpful is Tyler had actually completed the tests