I'm using Jest + Enzyme for testing my Reacts components, but asyncConnect code runs in server side, so I dont know whats is the best manner to test this part of code.
export default asyncConnect(
[
{
promise: ({ store: { dispatch, getState }, location, helpers }) => {
//dipatch some actions
//I want to test this code
}
}
],
mapStateToProps,
mapDispatchToProps
)(Home);
Aucun commentaire:
Enregistrer un commentaire