react natice mock redux
check the Defautl documetation test you will find better idea to test your store
test('should handle a todo being added to an empty list', () => {
const previousState = []
expect(reducer(previousState, todoAdded('Run the tests'))).toEqual([
{
text: 'Run the tests',
completed: false,
id: 0
}
])
})
todoAdded is any of your change on which state it do impack just replace
the object toEqual([
{
text: 'Run the tests', //todoAdded impact here and chnage the state
completed: false,
id: 0
}
])