React Add Event Listener Test not Passing

Tell us what’s happening:
My code seems good (I even checked it against the solution after I was sure I had done it right, and it seemed to match on a quick check), but the tests keep getting stuck and not finishing. Is there some syntax error somewhere that is stopping my code from running?

Your code so far


class MyComponent extends React.Component {
 constructor(props) {
   this.state = {
     message: ''
   this.handleEnter = this.handleEnter.bind(this);
   this.handleKeyPress = this.handleKeyPress.bind(this);
 // change code below this line
componentDidMount() {
   document.addEventListener('keydown', this.handleKeyPress);
 componentWillUnmount() {
   document.removeEventListener('keydown', this.handleKeyPress);
 // change code above this line
 handleEnter() {
     message: this.state.message + 'You pressed the enter key! '
 handleKeyPress(event) {
   if (event.keyCode === 13) {
 render() {
   return (

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 12371.75.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.105 Safari/537.36.

Challenge: Add Event Listeners

Link to the challenge:

What’s the error message you’re receiving?

There’s not one. It justs says “running tests” forever. Do you think this a bug in the tests? Do I need to report it somewhere else?