...

/

Testing Action Creators

Testing Action Creators

Learn how to test the action creators in Redux.

We'll cover the following...

Because action creators are nothing more than plain JavaScript functions which require only constants and do not rely on state, they are very easy to test. Given the same input, they will always return the same output. Action creators also never modify any state directly but rather only return a new ...