Test suites are not passing for the calculator

My Calculator is working correctly but the test cases won’t pass

Code is a little messy.

Link to the code pen

Try switching to the old render method or downgrade to React 17

ReactDOM.render(<App />, document.getElementById('root'));

It passes when I do that.