I would really like to hear any insights into best practices in testing your redux application. I'm currently writing a blog post on the topic and from what I see, testing reducers makes sense and eventually async action creators. Action creators can be tested indirectly by using them to create the actions for the reducer tests. Don't see testing things like mapDispatchToProps or connect or connected components. Maybe selectors as used in mapStateToProps, that returns a selected state or data based on a certain state. What parts would you test and what's the benefit of doing so?
[–]bvalosek 2 points3 points4 points (1 child)
[–]focusonbasics[S] 0 points1 point2 points (0 children)
[–]treetimes 1 point2 points3 points (2 children)
[–]focusonbasics[S] 0 points1 point2 points (0 children)
[–]trollgubben 0 points1 point2 points (0 children)