Jest test fails : TypeError: window.matchMedia is not a function : <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 "Manual mocks" section, but I have not any idea about how to do that yet. </p>
