()
| 34 | |
| 35 | // Action creator to increment count, wait a second and then reset |
| 36 | const addAndReset = () => { |
| 37 | return (dispatch) => { |
| 38 | dispatch({ type: 'increment' }); |
| 39 | |
| 40 | setTimeout(() => { |
| 41 | dispatch({ type: 'reset', payload: initialCount }); |
| 42 | }, 1000); |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | const setUp = () => { |
| 47 | const useThunkReducer = createReducer(thunk, logger); |
no outgoing calls
no test coverage detected
searching dependent graphs…