August 2017
Beginner
374 pages
10h 41m
English
Because Redux reducers and action creators are just functions, and actions are simply objects, they are easy to test. Furthermore, many of those functions are pure, which means they have no side effects. Pure functions only use their arguments and constants to produce the output. This is why we only need to pass certain arguments and check the output to test the function. If there are side effects involved (which is the case for asynchronous action creators), we need to do some mocking.
Read now
Unlock full access