Skip to content

fix: mock window.matchMedia for Jest tests #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

pjaudiomv
Copy link
Collaborator

Add matchMedia mock to jest.setup.js to resolve TypeError when running tests that use media queries or dark mode detection

Copy link

netlify bot commented May 26, 2025

Deploy Preview for tsml-ui ready!

Name Link
🔨 Latest commit 0f0b5bd
🔍 Latest deploy log https://app.netlify.com/projects/tsml-ui/deploys/68344ff94e0adf000892f50b
😎 Deploy Preview https://deploy-preview-450--tsml-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@joshreisner joshreisner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice thanks

@joshreisner joshreisner merged commit 17f0d9e into code4recovery:main May 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants