Calculator functional but will not pass

https://codepen.io/nfcarbone/pen/YzGwgQx

I’ve had a lot of help trying to weed out bugs thanks to user swervin but we can’t seem to find why this will not pass half of the tests.

The test keeps reading 0 as my output instead of the value actually passed from state. Why would this be happening?

In case anyone else runs into my situation:

I had the button events as “onMouseDown” so that they would be snappier, and this was enough to break the tests. Changed to onClick.