mardi 8 août 2017

React testing: How can I reach the instance of a connected (redux) component

I want to be able to test methods of a component that is being exported as a connected component, so I need to reach the instance of that component.

export default connect(mapStateToProps, mapDispatchToProps)(MyComponent);

I'm having trouble reaching that instance.

Aucun commentaire:

Enregistrer un commentaire