@baldore
Front-end Development (but I want to do Back-end too)
Nothing here yet.
Nothing here yet.
No blogs yet.
Redux is easy for pure functions (basically action creators that return objects and reducers). const addTodo = (todo) => ({ type: 'ADD_TODO' , todo }); expect(addTodo({ foo: 'bar' })).toEqual({ type: 'ADD_TODO' , todo: { foo: 'bar' } }); Reducers is the same. Just call the function with a initial state and an action and check the returned object. When it comes to action creators with thunks, it's a little harder. You can check here: Your title here Finally, for React you can use the tools that facebook gives you. I personally like Enzyme .