Instead of using a keyCode, I used a key, in the case of ‘Enter’, using mount:
wrapper.find('input').simulate('keypress', {key: 'Enter'})
Instead of using a keyCode, I used a key, in the case of ‘Enter’, using mount:
wrapper.find('input').simulate('keypress', {key: 'Enter'})