title: How to mock video pause function using JEST?
body: <p>In my components I have code like this:</p>
  
  <pre><code>this.videoRef.current.pause();
  </code></pre>
  
  <p>Where <code>videoRef</code> is <code>&lt;video ref={this.videoRef} autoPlay muted &gt; ...</code></p>
  
  <p>When Is <code>pause</code> reached in test, I am getting a error:</p>
  
  <pre><code> Error: Not implemented: HTMLMediaElement.prototype.pause
  </code></pre>
  
  <p>How can I mock pause function?</p>
  
  <pre><code>    const wrapper = mount(&lt;ComponentWithVideoTag /&gt;);
  
      const el = wrapper.find('video').props();
      Object.defineProperty(el, 'paused', {
          writable: true,
          value: jest.fn(),
      });
  </code></pre>
  
  <p>Not working for me.</p>