I am new with React so not easy to understand it, but shouldn’t your reducerswitch have a default case default: state ? I mean, not need to return it in the function, am I right?
It looks like your app is not really working fine, it is not reseting the state I guess and it is not handling negative numbers, but not sure what the problem is. I hope this help you in some way.
I would need to test it myself to come with some ideas, I still need practices.
I think since your using your Digit class instead of the button element the test suite is giving problems. I see that the Digit class is a button but I recommend that you should try to replace the Digit with button.