The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

React Testing: Redux Reducers

React Testing: Redux Reducers

6:42
Sometimes we want to test our Redux reducers to make sure they work as expected. In this lesson we will walk through setting up some Redux reducer tests for common situations and edge cases.
Watch this lesson now
Avatar
egghead.io

Sometimes we want to test our Redux reducers to make sure they work as expected. In this lesson we will walk through setting up some Redux reducer tests for common situations and edge cases.

Avatar
Enrique

Just curious as to the reason why stateBefore needs to be a function rather than a const. Is that intentional?

Avatar
Trevor

No reason, a variable would work great :)

In reply to Enrique
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?