title: _react2.fireEvent.change is not a function | react testing library
body: <p>I try to simulate onChange with fireEvent.change, but get error _react2.fireEvent.change is not a function.</p>
  
  <p>I checked official docs of react testing library, did everything exactly how it's there <a href="https://testing-library.com/docs/example-input-event" rel="nofollow noreferrer">https://testing-library.com/docs/example-input-event</a>, even created another test where copied all code from docs, and created exactly the same input in react component. Still the same - _react2.fireEvent.change is not a function.</p>
  
  <p>My input</p>
  
  <pre><code>&lt;input
    data-testid='input-file'
    value={img}
    onChange={upImage}
    className="file-upload"
    type="file"
  /&gt;
  </code></pre>
  
  <p>my Test</p>
  
  <pre><code>it('img preview', () =&gt; {
    const form = render(&lt;Form addItem={func} /&gt;)
  
    const input = form.getByTestId('input-file')
    const file = new File(['dummy content'], 'example.png',  {type: 'image/png'})
  
    fireEvent.change(input, { target: { value: { file } } })
  })
  </code></pre>
  
  <p>also, when I check input in test, in console it's showed like this:</p>
  
  <pre><code> Received: &lt;input class="file-upload" data-testid="input-file" type="file" value="" /&gt;
  </code></pre>
  
  <p>there is simply not onChange</p>