In smart components, we’re exporting the original React component class and the Connect wrapper class.
- There is a test for the smart component class that checks whether
mapStateToProps
andmapDispatchToProps
generate and pass through the expected props. - There is another, more conventional test for the dumb component class that tests the rendered DOM tree.
The tests helpers here are used for the smart test.