inveniosoftware / react-invenio-deposit

React application for Invenio deposit forms.
https://react-invenio-deposit.readthedocs.io
MIT License
3 stars 45 forks source link

tests: fix window.matchMedia is not a function #647

Closed ptamarit closed 2 months ago

ptamarit commented 3 months ago

:heart: Thank you for your contribution!

Description

CI tests are broken since commit 89834c3. This PR fixes the tests by mocking window.matchMedia (as for instance done in react-invenio-app-ils).

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.