title: Jest test fails : TypeError: window.matchMedia is not a function
body: <p>This is my first front-end testing experience. In this project, I'm using Jest snapshot testing and got an error <code>TypeError: window.matchMedia is not a function</code> inside my component.</p>
  <p>I go through Jest documentation, I found the &quot;Manual mocks&quot; section, but I have not any idea about how to do that yet.</p>