title: ReactJS Test - fsevents is not a function
body: <p>I am trying to write test cases for my program and I heard good things about <code>testing-library/react</code> and <code>jest-junit</code>. I used npm to install both packages into my <code>devDependencies</code> and change my script for test: <code>"test": 'react-scripts test"</code> When I run npm test, I get and error saying </p>
  
  <p><code>TypeError: fsevents is not a function</code></p>
  
  <p>So I tried to npm i fsevents but it did not help. I tried looking online but the errors there were either fsevents is not a constructor or change to yarn.</p>
  
  <p>What is causing this issue? I am using npm v6.4.1 and react-script v3.1.1</p>
  
  <p>Edit: Also using a Mac if that matters</p>
  
  <p>Edi2: I ran the test again and did not get this error anymore without changing anything.</p>